Skip to content

Programatically set 'selected' when 'multiple' = false #53

Description

@tylerablake

Hi,

I've tried setting the 'selected' property but doesn't work for me. Selected takes in an array of values, and since my filter select has multiple="false". I tried setting an array with just the selected item then setting the filterSelect.selected property but it isn't updating the label on the UI..

var selectedItem = new Array<PartyFilterSelectItem>();

selectedItem.push(new PartyFilterSelectItem(this.motorCarrierId, this.motorCarrierName));

let responsiblePartyFilterSelect = <any>this.page.getViewById('bookingResponsiblePartyFilterSelect'); responsiblePartyFilterSelect.selected = selectedItem;

Any help would be appreciated, thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions