Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:search_config [2012/03/08 18:56]
yial2 Add warning to "searchrules"
wiki:search_config [2017/12/12 17:14] (current)
admin
Line 5: Line 5:
 There are four approaches: There are four approaches:
    * a toolbar searching    * a toolbar searching
-   * a custom searching+   * a custom searching ​
    * a single field searching    * a single field searching
    * a more complex approach involving many fields and conditions - advanced searching    * a more complex approach involving many fields and conditions - advanced searching
Line 49: Line 49:
 |attr|object|attr is object where we can set valid attributes to the created element. By example: \\ attr : { title: "Some title" } \\ Will set a title of the searched element| |attr|object|attr is object where we can set valid attributes to the created element. By example: \\ attr : { title: "Some title" } \\ Will set a title of the searched element|
 |searchhidden|boolean| By default hidden elements in the grid are not searchable . In order to enable searching when the field is hidden set this option to true| |searchhidden|boolean| By default hidden elements in the grid are not searchable . In order to enable searching when the field is hidden set this option to true|
-|sopt|array|This option is used only in advanced single field searching and determines the operation that is applied to the element. If not set all the available options will be used. All available option are: \\ ['​eq','​ne','​lt','​le','​gt','​ge','​bw','​bn','​in','​ni','​ew','​en','​cn','​nc'​] \\ The corresponding texts are in language file and mean the following: \\ ['​equal','​not equal',​ '​less',​ 'less or equal','​greater','​greater or equal',​ '​begins with','​does not begin with','​is in','​is not in','​ends with','​does not end with','​contains','​does not contain'​] \\ Note that the elements in sopt array can be mixed in any order.|+|sopt|array|This option is used only in advanced ​single ​and toolbar ​field searching and determines the operation that is applied to the element. If not set all the available options will be used. When used in toolbar searching the first element is used. All available option are: \\ ['​eq','​ne','​lt','​le','​gt','​ge','​bw','​bn','​in','​ni','​ew','​en','​cn','​nc'​] \\ The corresponding texts are in language file and mean the following: \\ ['​equal','​not equal',​ '​less',​ 'less or equal','​greater','​greater or equal',​ '​begins with','​does not begin with','​is in','​is not in','​ends with','​does not end with','​contains','​does not contain'​] \\ Note that the elements in sopt array can be mixed in any order.|
 |defaultValue|string|If not empty set a default value in the search input element.| |defaultValue|string|If not empty set a default value in the search input element.|
 |value|mixed| The option is used only for stype select and defines the select options in the search dialogs. When set for stype select and dataUrl option is not set, the value can be a string or object. \\ If the option is a string it must contain a set of value:label pairs with the value separated from the label with a colon (:) and ended with(;). The string should not end with a (;)- editoptions:​{value:"​1:​One;​2:​Two"​}.If set as object it should be defined as pair value:name - editoptions:​{value:​{1:'​One',​2:'​Two'​}} | |value|mixed| The option is used only for stype select and defines the select options in the search dialogs. When set for stype select and dataUrl option is not set, the value can be a string or object. \\ If the option is a string it must contain a set of value:label pairs with the value separated from the label with a colon (:) and ended with(;). The string should not end with a (;)- editoptions:​{value:"​1:​One;​2:​Two"​}.If set as object it should be defined as pair value:name - editoptions:​{value:​{1:'​One',​2:'​Two'​}} |
 +|clearSearch|boolean|When set to false the X icon at end of search field which is responsible to clear the search data is disabled. the default value is true|
 <​note>​Note:​ when the dataUrl in searchoptions object is not used for the search type select, the definitions for the select are taken first from searchoptions value property and if this is not defined a editoptions value property is used- i.e editoptions:​{value:"​1:​one;​2:​two",​...}. See below how to use these options in different search methods.</​note>​ <​note>​Note:​ when the dataUrl in searchoptions object is not used for the search type select, the definitions for the select are taken first from searchoptions value property and if this is not defined a editoptions value property is used- i.e editoptions:​{value:"​1:​one;​2:​two",​...}. See below how to use these options in different search methods.</​note>​
  

QR Code
QR Code wiki:search_config (generated for current page)