This repository has been archived by the owner on Jul 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
UIButton
Adarsh Pastakia edited this page Mar 30, 2017
·
2 revisions
-
<ui-button theme size style glyph="ui-icon-edit" click.trigger="fn($event)"> Button</ui-button>
-
Themes
light
dark
primary
secondary
info
danger
success
warning
-
Sizes
normal
big
small
-
Styles
-
round
: Round sides -
square
: Equal padding all sides -
icon-top
: Place icon above label
-
-
Bindable Attributes
-
theme
: Usetheme.bind
when button theme needs to be updated after attached -
label
: Uselabel.bind
when button label needs to be updated after attached -
value
: Used for button group toggle width
disabled
-
busy
: show busy indicator
-
-
Themes
-
<ui-button glyph="ui-icon-picture" dropdown.bind="btnMenu">Click Me</ui-button> <ui-menu ref="btnMenu"> <ui-menu-section>Actions</ui-menu-section> <ui-menu-item glyph="ui-icon-edit">Edit</ui-menu-item> <ui-menu-item glyph="ui-icon-trash">Delete</ui-menu-item> <ui-menu-section>Options</ui-menu-section> <ui-menu-item glyph="ui-icon-cog">Settings</ui-menu-item> </ui-menu>
-
<ui-button glyph="ui-icon-key" form.bind="btnForm">Login</ui-button> <ui-form ref="btnForm" class="ui-pad-all"> <ui-loader busy.bind="isSaving"></ui-loader> <ui-input-group> <ui-input-label>Username</ui-input-label> <ui-input width="12em"></ui-input> </ui-input-group> <ui-input-group> <ui-input-label>Password</ui-input-label> <ui-input password></ui-input> </ui-input-group> <div class="ui-text-end"> <ui-button dark>Login</ui-button> </div> </ui-form>
- UIButton
- UIFieldset
- UIForm
- UIInputGroup
- UIInput
- UITextarea
- UIDate
- UIPhone
- UICheckbox
- UIRadio
- UISwitch
- UICombo
- UITag
- UIList
- UIReorder
- UILanguage
- UIMarkdown
- UIDrawer
- UIDropdown
- UIMenu
- UIPanel
- UISidebar
- UIStatsbar
- UIToolbar
- UIDialog
- UITab
- UITree
- UIDatagrid