(
manager,
module_name: string,
model: string,
view: string,
id: string,
args = {}
)
| 19 | } |
| 20 | |
| 21 | export async function create_model( |
| 22 | manager, |
| 23 | module_name: string, |
| 24 | model: string, |
| 25 | view: string, |
| 26 | id: string, |
| 27 | args = {} |
| 28 | ) { |
| 29 | const model_widget = await manager.new_widget( |
| 30 | { |
| 31 | model_module: module_name, |
| 32 | model_name: model, |
| 33 | model_module_version: '*', |
| 34 | view_module: module_name, |
| 35 | view_name: view, |
| 36 | view_module_version: '*', |
| 37 | model_id: id, |
| 38 | }, |
| 39 | args |
| 40 | ); |
| 41 | return model_widget; |
| 42 | } |
| 43 | |
| 44 | export async function create_view(manager, model, options = {}) { |
| 45 | const view = await manager.create_view(model, options); |
no outgoing calls
no test coverage detected
searching dependent graphs…