Page MenuHomePhabricator

Add a selected button ui state
ClosedPublic

Authored by chad on Aug 30 2017, 4:54 PM.
Tags
None
Referenced Files
F15424407: D18501.id44435.diff
Sat, Mar 22, 10:11 PM
Unknown Object (File)
Feb 17 2025, 4:58 AM
Unknown Object (File)
Feb 9 2025, 4:40 AM
Unknown Object (File)
Feb 9 2025, 4:40 AM
Unknown Object (File)
Feb 9 2025, 4:40 AM
Unknown Object (File)
Feb 9 2025, 4:40 AM
Unknown Object (File)
Feb 9 2025, 4:40 AM
Unknown Object (File)
Jan 24 2025, 10:26 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
Branch
selected-button (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 18220
Build 24503: Run Core Tests
Build 24502: arc lint + arc unit

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.