gpt4 book ai didi

javascript - Extjs 在色域中隐藏 alpha 条和文本

转载 作者:行者123 更新时间:2023-11-28 18:42:39 24 4
gpt4 key购买 nike

我正在使用this从色域选择器中选取颜色。但是我不希望阿尔法栏可用且可见。如何在我的概览中隐藏这一点?这似乎是一个简单的问题,但我真的不知道答案。

最佳答案

如果您重写该类,或将其扩展到您自己的组件中并将构造函数更改为以下内容:

constructor: function (config) {
var me = this,
childViewModel = Ext.Factory.viewModel('colorpick-selectormodel');

// Since this component needs to present its value as a thing to which users can
// bind, we create an internal VM for our purposes.
me.childViewModel = childViewModel;
me.items = [
me.getMapAndHexRGBFields(childViewModel),
me.getSliderAndHField(childViewModel),
me.getSliderAndSField(childViewModel),
me.getSliderAndVField(childViewModel),
/* remove this one as it is the alpha field */
//me.getSliderAndAField(childViewModel),
me.getPreviewAndButtons(childViewModel, config)
];

me.callParent(arguments);
},

关于javascript - Extjs 在色域中隐藏 alpha 条和文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35895552/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com