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)
Wed, Jan 22, 11:24 PM
Unknown Object (File)
Wed, Jan 22, 7:43 AM
Unknown Object (File)
Tue, Jan 21, 11:10 AM
Unknown Object (File)
Sat, Jan 18, 12:57 AM
Unknown Object (File)
Tue, Jan 14, 9:17 PM
Unknown Object (File)
Fri, Jan 10, 12:00 AM
Unknown Object (File)
Sat, Dec 28, 2:26 PM
Unknown Object (File)
Dec 25 2024, 9:16 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
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.