1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest Development Admin Options AutoComplete Class

Discussion in 'Closed Suggestions' started by Snog, Jul 18, 2014.

  1. Snog

    Snog Well-Known Member

    A simple request to add the option of using AutoComplete in option text boxes. That simply means adding the {$formatParams.class} option.

    I've tested this by changing the admin template option_list_option_textbox to this:

    Code:
    <xen:textboxunit label="{$preparedOption.title}" name="{$fieldPrefix}[{$preparedOption.option_id}]" value="{$preparedOption.option_value}"
    hint="{$formatParams.hint}" placeholder="{$formatParams.placeholder}" type="{$formatParams.type}" size="{$formatParams.size}" maxlength="{$formatParams.maxlength}" rows="{$formatParams.rows}" inputclass="Elastic {$formatParams.class}" >
     <xen:explain>{xen:raw $preparedOption.explain}</xen:explain>
     <xen:html>
     <xen:include template="option_list_option_editlink" />
     <input type="hidden" name="{$listedFieldName}" value="{$preparedOption.option_id}" />
     {xen:raw $editLink}
     </xen:html>
    </xen:textboxunit>
    
    And then add this to the format parameters in an option:
    Code:
    class = textCtrl AutoComplete AcSingle
    So far as I can tell it works without a problem.
     

Share This Page