Logo

What are you looking for?

Get help straight from our team...

API's, Frameworks & Databases

SK.UI.Autocomplete.Dropdown

Last updated on 13 Mar, 2023

 

Overview

The SK.UI.Autocomplete.Dropdown class creates an Autocomplete searchbox from a select element. It extends SK.UI.Autocomplete.

 

Include Resource Files

  • /Shared/UIComponents/Internal/LinkInterface/Autocomplete

    • /css/fat_autocomplete.css

        <link type="text/css" rel="stylesheet" href="/Shared/UIComponents/Internal/LinkInterface/Autocomplete/css/fat_autocomplete.css">
    • /Scripts/fat_autocomplete.js

        <script type="text/javascript" src="/Shared/UIComponents/Internal/LinkInterface/Autocomplete/Scripts/fat_autocomplete.js"></script>

The dependency files may already exist in the environment and you may not need to include them.

 

Constructor Parameters

Name

Description

Type

select

The select element which options will be used to populate the autocomplete list.

DOM Element or ID String

options

The autocomplete options.

Object

 

Options

These extend the SK.UI.Autocomplete options with a new one.

Name

Description

Type

Default Value

hide_select

Whether to hide the original select element.

Boolean

true

 

Methods

Name

Description

Parameters

Returns

getSelect

Returns the source select element.

-

DOM Element

 

Examples

Initializing an autocomplete searchbox from a <select> element.

Did you find this article helpful?
Previous

SK.UI.Autocomplete

Next