import { Component , ViewChild , ElementRef , Input } from '@angular/core' ; import { NavController } from '@ionic/angular' ; import { UserService } from 'src/app/core/services/user.service' ; import Sortable from 'sortablejs' ; import { DataService } from '../../services/data.service' ; @ Component ( { selector : 'scene-button-group' , templateUrl : 'scene-button-group.html' , styleUrls : [ 'scene-button-group.scss' ] } ) export class SceneButtonGroupComponent { get sceneDataList ( ) { if ( typeof this . dataService . scene != 'undefined' ) return this . dataService . scene . list ; return ; } @ ViewChild ( "buttonGroup" , { read : ElementRef , static : true } ) buttonGroup : ElementRef ; constructor ( private dataService ) { } saveButtonListTimer ; waitSaveButtonList ( ) { window . clearTimeout ( this . saveButtonListTimer ) ; } saveButtonList ( ) { } }