forked from Simnation/Main
33 lines
No EOL
680 B
JavaScript
33 lines
No EOL
680 B
JavaScript
class EmergencyVehicleRadio{
|
|
constructor(){
|
|
this.name = "emergencyvehicleradio";
|
|
}
|
|
|
|
static GetCustomDestination(data, dest){
|
|
return "controlcentre.dataload";
|
|
}
|
|
static GetCustomDestID(data, destID){
|
|
return -1;
|
|
}
|
|
|
|
static GetColumns(){
|
|
return []
|
|
}
|
|
|
|
static TableDataCreate(row, key){
|
|
return `<td>${row[key]}</td>`;
|
|
}
|
|
|
|
static GetEdit(data={}){
|
|
|
|
return {
|
|
"radio_status_id": {
|
|
"val" : data.radio_status_id ?? "-1"
|
|
,"type" : "dropdown"
|
|
,"mandatory":true
|
|
,"isRow":true
|
|
,"options":data.extraData.radio_states
|
|
}
|
|
}
|
|
}
|
|
} |