Author Topic: pqSelect single select  (Read 3204 times)

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
pqSelect single select
« on: October 18, 2016, 02:08:18 pm »
When applying pqSelect to  single select I get a box inside the dropdown box with the option text inside it...how can I fix that?
Thanks.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6265
    • View Profile
Re: pqSelect single select
« Reply #1 on: October 19, 2016, 11:23:22 am »
I'm not sure what you mean by the option text. Can you please attach a screenshot.

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
Re: pqSelect single select
« Reply #2 on: October 19, 2016, 02:08:59 pm »
Sure, I would like it to display as a "normal" select, not as a box inside the dropdown.
Thanks

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6265
    • View Profile
Re: pqSelect single select
« Reply #3 on: October 20, 2016, 01:10:04 pm »
maxDisplay:0 might get you the desired effect: http://paramquery.com/pro/api/select#option-maxDisplay

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
Re: pqSelect single select
« Reply #4 on: October 20, 2016, 01:33:16 pm »
No, It works for multiple select...mine is a standard (single) select and it doesn't seem to work...

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6265
    • View Profile
Re: pqSelect single select
« Reply #5 on: October 20, 2016, 02:17:56 pm »
Sorry about that.

deselect: false is the right fit.

http://paramquery.com/pro/api/select#option-deselect

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
Re: pqSelect single select
« Reply #6 on: October 20, 2016, 07:33:59 pm »
Great, thanks.