Page MenuHomePhabricator

Add a selected button ui state
ClosedPublic

Authored by chad on Aug 30 2017, 4:54 PM.
Tags
None
Referenced Files
F18099354: D18501.id44437.diff
Sat, Aug 9, 4:00 AM
F18098454: D18501.diff
Fri, Aug 8, 8:16 PM
F17939790: D18501.id.diff
Jul 31 2025, 3:26 AM
F17805386: D18501.id.diff
Jul 25 2025, 12:31 PM
F17799433: D18501.diff
Jul 25 2025, 5:01 AM
F17798711: D18501.id44435.diff
Jul 25 2025, 3:55 AM
F17756650: D18501.diff
Jul 22 2025, 2:33 PM
Unknown Object (File)
Jul 7 2025, 12:02 AM
Subscribers

Details

Summary

Only for grey buttons, but can expand. Sets a selected class.

Test Plan

Review new changes in UIExamples.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley added inline comments.
webroot/rsrc/js/phuix/PHUIXButtonView.js
50–54

Simpler as:

this._selected = selected;
JX.DOM.alterClass(node, 'selected', this._selected);
This revision is now accepted and ready to land.Aug 30 2017, 4:56 PM
This revision was automatically updated to reflect the committed changes.