This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move button readme to doc folder and sym link for template README.md [#…
…125]
- Loading branch information
Showing
2 changed files
with
39 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Button | ||
|
||
## Definition | ||
|
||
A button is a user interface element that a User can "press" to cause some action within the application. | ||
|
||
## Usages | ||
|
||
A button has many uses, including: | ||
|
||
* Submit a form | ||
* Toggle state | ||
* Close a dialog | ||
|
||
## Features | ||
|
||
A button can be created using three different HTML elements: | ||
|
||
1. `a` | ||
2. `button` | ||
3. `input` (with `type` equal to "submit", "button", or "reset") | ||
|
||
To style the element as a button, simply add the CSS class "button." The semantic color classes (e.g., "success", | ||
"warning", and "inverse") can also be added to style the button appopriately. | ||
|
||
### Disabled State | ||
|
||
You can indicate that a button is disabled by either adding the "disabled" CSS class or adding the | ||
"disabled" attribute to the element. Although both methods will work, adding the attribute should be preferred unless | ||
it is not possible (as in the case of the `a` element). | ||
|
||
### Button Size | ||
|
||
Button size can be controlled via using one of the CSS utility classes ("large", "small", and "mini"). | ||
|
||
## Responsive Considerations | ||
|
||
The button should not require any responsive adaptation since it is more or less an inline element. |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
../../../doc/module/entity/Button.md |