search
misc
Create UI to give search options.
misc
Create UI to give search options.
Example | |
HTML code | |
Type | molecule |
Group | misc |
Elements | icon, title, description |
Wrapper to use element through PHP
Extends | eUiElement | ||||||||
Render | |||||||||
Create arguments | |||||||||
Methods |
|
||||||||
Code example | Simple usage$Search = $mad->get('ui', 'search', Array( 'table' => 'testikansio', 'filters' => 'nimi,paiva' )); $data = $Search->getResult(); All attributes$Search = $mad->get('ui', 'search', Array( 'table' => 'testikansio', // 'style' => 'vertical', // DEFAULT // 'name' => 'asetus[search]', // DEFAULT // 'value' => $asetus[search] // DEFAULT: Reads name from REQUEST 'filters' => 'nimi,paiva' )); $Search->addFilter(Array( // table => '', DEFAULT: $Search.table 'field' => 'hinta', // 'title' => 'Label text', // DEFAULT: field.title // name => 'filter_name' DEFAULT: field.name // value => '' DEFAULT: From $Search.value )); |
Wrapper to use element through Javascript
Code example |
Elements Css style
icon | < class=' icon'>Icon{tag}> |