-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added an attribute to represent the button types. (#69)
* Added `HTMLButtonType`. * Added a test for button type.
- Loading branch information
1 parent
1b10c15
commit 0320a8d
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* Plot | ||
* Copyright (c) John Sundell 2019 | ||
* MIT license, see LICENSE file for details | ||
*/ | ||
|
||
import Foundation | ||
|
||
/// Enum that defines various button types that can be used with the | ||
/// `<button/>` HTML element. For example `.button(.type(.submit))`. | ||
public enum HTMLButtonType: String { | ||
case button | ||
case reset | ||
case submit | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters