fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Documentation Update - React UI Fabric Dropdown Control

Open duffysp opened this issue 7 years ago • 7 comments

Not really sure where I should file this but can selectedKey and defaultSelectedKey be added to the documentation for the React Dropdown Control: https://developer.microsoft.com/en-us/fabric#/components/dropdown#Implementation They seem to be missing from the Optional Members section despite having examples of it in the code; Lost a little bit of time on this.

Never filed one of these before so apologies if this is in the wrong area.

Thanks.

duffysp avatar Jan 28 '19 09:01 duffysp

Hey @duffysp! I do see defaultSelectedKeys and selectedKeys documented in the Implementation section you linked

screen shot 2019-01-28 at 10 57 22 am screen shot 2019-01-28 at 10 57 34 am

Is it possible that you were also seeing blank spaces in the properties table when loading the page in your browser, as mentioned in the issue here?

natalieethell avatar Jan 28 '19 19:01 natalieethell

Hi Natalie, thanks for getting back. Although defaultSelectedKeys and selectedKeys (used for multi-select dropdowns) are on the documentation, defaultSelectedKey and selectedKey (used in single choice dropdowns) are both missing. EG: image Example: image

Hope this helps, Thanks.

duffysp avatar Jan 28 '19 19:01 duffysp

Ah I see, thank you for clarifying! We definitely want those documented!

Luckily, this should actually be fixed pretty soon with the work I've been doing to re-vamp the documentation (tracked here). It looks like these props, and others, are missing because our current documentation doesn't show what an interface "extends". Those props are coming from ISelectableDroppableTextProps, which IDropdownProps extends. Our new documentation should make this inheritance more obvious and also link to ISelectableDroppableTextProps.

Thanks again for bringing this up. I'll link this issue in the "Re-do Implementation Section" of the issue I liked above to make sure it's tracked.

natalieethell avatar Jan 28 '19 21:01 natalieethell

:tada:This issue was addressed in #8844, which has now been successfully released as @uifabric/[email protected].:tada:

Handy links:

msft-github-bot avatar Apr 30 '19 12:04 msft-github-bot

:tada:This issue was addressed in #8844, which has now been successfully released as @uifabric/[email protected].:tada:

Handy links:

msft-github-bot avatar Apr 30 '19 12:04 msft-github-bot

:tada:This issue was addressed in #8844, which has now been successfully released as @uifabric/[email protected].:tada:

Handy links:

msft-github-bot avatar Apr 30 '19 12:04 msft-github-bot

:tada:This issue was addressed in #8844, which has now been successfully released as [email protected].:tada:

Handy links:

msft-github-bot avatar Apr 30 '19 12:04 msft-github-bot