Class SearchSettings

    • Field Detail

      • BUTTON_DATA_ATTRIBUTES

        public static final java.lang.String BUTTON_DATA_ATTRIBUTES
        See Also:
        Constant Field Values
    • Constructor Detail

      • SearchSettings

        public SearchSettings()
    • Method Detail

      • getThis

        protected SearchSettings getThis()
        Description copied from class: BasicSettings
        Returns the exact type of the this reference.
        It's a way to recover the type of the this object in a class hierarchy (cf. getThis "trick").
        Specified by:
        getThis in class BasicSettings<SearchSettings>
        Returns:
        The exact type of the this reference
      • buttonDataAttributes

        public SearchSettings buttonDataAttributes​(java.util.Map<java.lang.String,​java.lang.Object> dataAttributes)
        Add a map of data attributes on the search button.
        The map key is the data attribute name, and the map value is the data attribute value. Example:
         <%
         Map<String, Object> map = new HashMap<String>();
         map.put("data-jalios-mydata1", "myvalue1");
         map.put("jalios-mydata2", "myvalue2");
         %>
         <jalios:control settings='new DefaultSettings().dataAttributes(map)' />
         
        Parameters:
        dataAttributes - Map of data attributes
        Returns:
        a reference to this object - used to chain calls
        See Also:
        BasicSettings.dataAttribute(String, Object)
      • buttonDataAttribute

        public SearchSettings buttonDataAttribute​(java.lang.String dataName,
                                                  java.lang.Object dataValue)
        Add a data attribute on the search button.
        The method accepts the data name with or without the 'data-' prefix. Example:
         <jalios:control settings='new DefaultSettings().dataAttribute("data-jalios-mydata1", "myvalue1").dataAttribute("jalios-mydata2", "myvalue2")'
         />
         
        This will add data attributes as follows:
         data-jalios-mydata1="myvalue1" data-jalios-mydata2="myvalue2"
         
        Parameters:
        dataName - data attribute name
        dataValue - data attribute value
        Returns:
        a reference to this object - used to chain calls