casesandberg/react-color

Propogate view from toggle button on ChromePicker

Open

#584 建立於 2019年2月5日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)JavaScript (946 fork)batch import
enhancementhelp wanted

倉庫指標

Star
 (11,679 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

The current view state of the ChromeFields input in ChromePicker is not externally accessible and makes it difficult to tie in with other components.

I suggest adding an onToggleView callback to pass the new "view" state as a parameter back up to its container. e.g: if(this.props.onToggleView){ this.props.onToggleView('hex'); }

貢獻者指南