diff options
author | Matt A. Tobin <email@mattatobin.com> | 2021-11-14 01:30:12 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2021-11-14 01:30:12 -0500 |
commit | 43fa0a71c814e902165782680f2f9705e3c234c9 (patch) | |
tree | 0ab3c66e8432febc00c18c036706c7ff43c11799 /components/bindings/content/splitter.xml | |
parent | 2fccdffac3075ee72087f9ee153204b02c7d931a (diff) | |
download | aura-central-43fa0a71c814e902165782680f2f9705e3c234c9.tar.gz |
Issue %3005 - Move toolkit/components to components/
Diffstat (limited to 'components/bindings/content/splitter.xml')
-rw-r--r-- | components/bindings/content/splitter.xml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/components/bindings/content/splitter.xml b/components/bindings/content/splitter.xml new file mode 100644 index 000000000..d23631fbe --- /dev/null +++ b/components/bindings/content/splitter.xml @@ -0,0 +1,37 @@ +<?xml version="1.0"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + + +<bindings id="splitterBindings" + xmlns="http://www.mozilla.org/xbl" + xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> + + <binding id="splitter" extends="xul:splitter"> + <resources> + <stylesheet src="chrome://global/skin/splitter.css"/> + </resources> + </binding> + + <binding id="grippy" extends="xul:button"> + <resources> + <stylesheet src="chrome://global/skin/splitter.css"/> + </resources> + <handlers> + <handler event="command"> + <![CDATA[ + var splitter = this.parentNode; + if (splitter) { + var state = splitter.getAttribute("state"); + if (state == "collapsed") + splitter.setAttribute("state", "open"); + else + splitter.setAttribute("state", "collapsed"); + } + ]]> + </handler> + </handlers> + </binding> + +</bindings> |