mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 07:28:43 +01:00
AcSelect Widget and integration into the Testwidget
This commit is contained in:
parent
a5796c8b41
commit
fc40ff11ca
@ -24,6 +24,7 @@ import {loadWebComponent} from "../etemplate/Et2Widget/Et2Widget";
|
|||||||
import {Et2VfsSelectDialog} from "../etemplate/Et2Vfs/Et2VfsSelectDialog";
|
import {Et2VfsSelectDialog} from "../etemplate/Et2Vfs/Et2VfsSelectDialog";
|
||||||
import {Et2Checkbox} from "../etemplate/Et2Checkbox/Et2Checkbox";
|
import {Et2Checkbox} from "../etemplate/Et2Checkbox/Et2Checkbox";
|
||||||
import type {EgwAction} from "../egw_action/EgwAction";
|
import type {EgwAction} from "../egw_action/EgwAction";
|
||||||
|
import {AcSelect} from "../../../achelper/js/AcSelect/AcSelect";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Type for push-message
|
* Type for push-message
|
||||||
@ -206,6 +207,20 @@ export abstract class EgwApp
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
changeButton()
|
||||||
|
{
|
||||||
|
const acSelect: AcSelect = window.document.querySelector("ac-select")
|
||||||
|
acSelect.disableLinkSearch = !acSelect.disableLinkSearch
|
||||||
|
acSelect.requestUpdate()
|
||||||
|
console.log("disableLinkSearch" + acSelect.disableLinkSearch)
|
||||||
|
}
|
||||||
|
|
||||||
|
doSomething(thing?:any)
|
||||||
|
{
|
||||||
|
console.log("doSomething\n"+thing);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function is called when the etemplate2 object is loaded
|
* This function is called when the etemplate2 object is loaded
|
||||||
* and ready. If you must store a reference to the et2 object,
|
* and ready. If you must store a reference to the et2 object,
|
||||||
|
@ -100,6 +100,25 @@ class Link extends Etemplate\Widget
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* return test Link entries
|
||||||
|
*/
|
||||||
|
public static function ajax_test_link_search($app, $type, $pattern, $options = array())
|
||||||
|
{
|
||||||
|
|
||||||
|
$response = Api\Json\Response::get();
|
||||||
|
// convert associative array to a real array with value attribute, to preserve the order of numeric keys
|
||||||
|
$result = [
|
||||||
|
0 => ["label" => "name0", "value" => 0],
|
||||||
|
1=> ["label" => "name1", "value" => 1],
|
||||||
|
2=> ["label" => "name2", "value" => 2],
|
||||||
|
3=> ["label" => "name3", "value" => 3],
|
||||||
|
4=> ["label" => "name4", "value" => 4],
|
||||||
|
];
|
||||||
|
$response->data($result);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find links that match the given parameters
|
* Find links that match the given parameters
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user