Button
form
Submit, Link or click -button.
form
Submit, Link or click -button.
Example | |
HTML code | <span class="button"><h4>Button</h4></span> |
Type | atom |
Group | form |
Elements | icon, title, description |
More examples | Basic: Input, select: Round: Square: Justified: |
Wrapper to use element through PHP
Extends | eUiElement |
Render | html |
Create arguments | style |
Code example | Basic button$this->get('ui', 'button', Array( 'icon' => 'app-check', 'title' => 'Button', 'color' => 'success' )); Submit buttonButton that submits the form it is in $this->get('ui', 'button', Array( 'icon' => 'app-check', 'title' => 'Button', 'color' => 'success', 'submit' => 'submit_name' )); Link buttonButton that is used as a link $this->get('ui', 'button', Array( 'icon' => 'app-check', 'title' => 'Button', 'color' => 'success', 'link' => 'link/route' )); Trigger buttonButton to trigger Javascript function $this->get('ui', 'button', Array( 'icon' => 'app-check', 'title' => 'Button', 'color' => 'success', 'onclick' => 'runMe()' )); All parameters$this->get('ui', 'button', Array( 'id' => 'my_button_id', 'role' => 'primary_button', 'icon' => 'app-check', 'title' => 'Button', 'color' => 'success', 'size' => 'large', 'shape' => 'round', 'style' => 'square', 'tooltip' => 'This is a button', 'link' => 'folder/orders', 'submit' => 'name', 'onclick' => 'runMe()' )); |
Wrapper to use element through Javascript
Methods |
|
||||||
Code example | Action buttonvar $Button = cms.get('ui', 'button', { icon: 'app-check', title: 'Button', onclick: function(){} }); Submit buttonvar $Button = cms.get('ui', 'button', { icon: 'app-check', title: 'Button', submit: 'submit_name' }); Link buttonvar $Button = cms.get('ui', 'button', { icon: 'app-check', title: 'Button', link: 'table/customer/addnew' }); All parameterscms.get('ui', 'button', { id: 'my_button_id', role: 'primary_button', icon: 'app-check', title: 'Button', tooltip: 'Tooltip', color: 'green', shape: 'round', size: 'large', width: 100, height: 100, submit: 'submit_name', link: 'table/customer/addnew', onclick: 'myFunc()', onclick: function(){} }).appendTo( selector ); |
Elements Css style
jumbo | |
large | |
normal | |
small | |
mini | |
round | |
radius | |
sharp | |
justified | Full width. |
square | Square -shaped button. Icon on top of title. |
circle | Circle -shaped button. Icon on top of title. |
input | Matches style, when grouped input. |
select | Matches style, when grouped with select. |
menu | |
placeholder | Placeholderin näköinen, haalea katkoviiva. |
outline | Only border. |
plain | No border nor background |
disabled | Button that is not in use. |
separator | Make space between buttons in same group |
table-cell | Fits nicely to table |
violet | |
purple | |
indigo | |
blue | |
azure | |
cyan | |
teal | |
darkgreen | |
green | |
lime | |
yellow | |
amber | |
orange | |
darkorange | |
red | |
pink | |
brown | |
white | |
lightgray | |
gray | |
darkgray | |
black | |
success | |
warning | |
danger | |
error | |
info | |
muted | |
selected | |
save | |
delete | |
load | |
cancel | |
confirm |