mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-16 19:50:44 +01:00
26 lines
586 B
TypeScript
26 lines
586 B
TypeScript
|
import {Et2Select} from "../Et2Select";
|
||
|
import {Et2StaticSelectMixin} from "../StaticOptions";
|
||
|
|
||
|
export class Et2SelectBitwise extends Et2StaticSelectMixin(Et2Select)
|
||
|
{
|
||
|
/* currently handled server-side */
|
||
|
/*
|
||
|
set value(new_value)
|
||
|
{
|
||
|
let oldValue = this._value;
|
||
|
let expanded_value = [];
|
||
|
let options = this.select_options;
|
||
|
for(let index in options)
|
||
|
{
|
||
|
let right = parseInt(options[index].value);
|
||
|
if(!!(new_value & right))
|
||
|
{
|
||
|
expanded_value.push(right);
|
||
|
}
|
||
|
}
|
||
|
super.value = expanded_value;
|
||
|
}
|
||
|
*/
|
||
|
}
|
||
|
|
||
|
customElements.define("et2-select-bitwise", Et2SelectBitwise);
|