Page MenuHomePhabricator

Add a selected button ui state
ClosedPublic

Authored by chad on Aug 30 2017, 4:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 28, 2:26 PM
Unknown Object (File)
Wed, Dec 25, 9:16 AM
Unknown Object (File)
Wed, Dec 25, 4:22 AM
Unknown Object (File)
Sun, Dec 22, 4:23 AM
Unknown Object (File)
Thu, Dec 19, 7:06 AM
Unknown Object (File)
Wed, Dec 18, 12:38 AM
Unknown Object (File)
Thu, Dec 12, 4:57 AM
Unknown Object (File)
Dec 10 2024, 12:01 PM
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.