Commit Graph

19 Commits

Author SHA1 Message Date
5e3c67a5cf converted egw_action from javascript to typescript
classes are now uppercase and in their own files. lowercase classes are deprecated.
Interfaces are now actual interfaces that should be implemented instead of creating and returning an ai Object every time
2023-07-10 16:54:22 +02:00
61deaad2a2 Fix et2container.getValueById() failed with error on (some) webcomponents 2023-04-19 11:30:37 -06:00
6120d820aa Change to Et2Dialog
- History diff
- Fix some bugs in placeholder widget
- Change load listener target, the dialog content node might have been moved out before the event gets triggered
2022-03-30 15:11:15 -06:00
8a666c751f Etemplate: Make some statustext readable by screenreader
(cherry picked from commit 5aba575d25)
2021-06-11 13:17:34 -06:00
587c4fd8fd fix not working add in calendar (et2_valueWidget not defined)
instead of checking widget to be instance of valueWidget (which would create a circular dependency) we check for the interface/methods of valueWidget
2021-06-11 14:50:46 +02:00
54fff9739a Add more missing import statements 2021-06-10 15:40:49 +02:00
f91bca83e1 got et2 mostly working: timesheet.edit renders 2021-06-07 17:33:53 +02:00
52bbfbef0b allow "{one phrase} {other phrase}" syntax in all attributes marked as translate eg. labels 2021-05-01 14:22:34 +02:00
bdbf28cd2c Change helper function getValueWidgetById() to the more useful getInputWidgetById() 2020-05-25 11:02:12 -06:00
4ba7bac850 Add some convenience functions for faster widget access
These are only available on et2_container, so app.ts can use eg: this.et2.setWidgetById(...)

getDOMWidgetById(): Same as getWidgetById() it returns et2_DOMWidget instead of et2_widget
getValueWidgetById(): Same as getWidgetById(), but returns et2_valueWidget
getValueById(): Find a widget, get its value
setValueById(): Find a widget, set its value
setDisabledById(): Find a widget, set its disabled state.
2020-05-15 14:01:02 -06:00
bdc99ab30c Increase visibility of tooltipElem so children can access it too 2020-02-27 11:50:04 -07:00
49493a6af8 Convert etemplate2 to typescript 2020-02-24 15:16:40 -07:00
a5299abbf7 Use correct widget for attributes 2020-01-29 15:12:43 +01:00
5e27866dc3 Fix copy/paste error in constructors 2020-01-29 15:12:43 +01:00
680a82cb4e Get et2 working in typescript 2020-01-29 15:11:00 +01:00
9e33a168fc Getting etemplate2 sort of working 2020-01-29 15:11:00 +01:00
f412b71225 inputWidget with TS 2020-01-29 15:08:42 +01:00
d9e2e26fcd some fixes for valueWidget 2020-01-29 15:08:42 +01:00
8b3f9947e6 baseWidget in TS 2020-01-29 15:08:42 +01:00