Extends Item

Apple.SearchBar

An iOS style search bar.

property Apple.SearchBar.Style style: .Prominent

Apple.SearchBar.Style.Prominent

Apple.SearchBar.Style.Minimal

property String text

The search text.

property String placeholder

Placeholder text to be shown when there is no search text.

Item {
    width: 320 
    height: bar.height

    Rectangle {
        anchor bounds = bar.bounds - 8.5
        color: #white
        radius: 5
    }

    Apple.SearchBar as bar {
        placeholder: "Artist"
    }
}

event accepted()

The accepted event is fired when the user hits return or search on the keyboard.

property Apple.SearchBar.PlaceholderAlignment placeholderAlignment: .Center

Specifies whether the placeholder text and search icon are centered or left aligned in the SearchBar.

Apple.SearchBar.PlaceholderAlignment.Left

Apple.SearchBar.PlaceholderAlignment.Center