-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_SF.dyalog
47 lines (38 loc) · 1.43 KB
/
_SF.dyalog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
:Namespace _SF ⍝ Syncfusion
⍝∇:require =\_JQ.dyalog
:section CommonCode
∇ r←ApiInfo
r←{↑⍵∘{6::⍵'' '' ⋄ ⍵(⍺⍎⍵,'.(ApiLevel DocBase)')}¨'e'⍵.⎕NL-9.4}⎕THIS
∇
∇ r←opt(sel Update jqfn)val
⍝ update an option for a widget
r←opt(sel #.JQ.Update jqfn)val
∇
:Class _ejWidget : #._JQ._jqWidget
⍝ generic Syncfusion Enterprise JavaScript object
:Field public Data←''
:Field public WidgetDef←'argument' 'argument' 'argument.model' 'this.element' '.val()' ⍝ Syncfusion's event model (see _JQ.RenderHandlerCore for details)
∇ make
:Access public
:If 0=⎕NC⊂'Uses' ⋄ Uses←'' ⋄ :EndIf
:If 0∊⍴Uses ⋄ Uses←'Syncfusion' ⋄ :EndIf
:Implements constructor
∇
∇ r←Render
:Access public
AddLocale
JQPars←Options
r←⎕BASE.Render
∇
∇ AddLocale
:If 9=⎕NC'Options'
:AndIf 0≠Options.⎕NC'locale'
:AndIf 0≠⎕NC'#.DUI.Server.Config.Virtual'
:AndIf ~0∊⍴sfFolder←#.DUI.Server.Config.Virtual{(⍺.alias⍳⊂⍵)⊃⍺.path,⊂''}'Syncfusion'
:AndIf #.Files.Exists sfFolder,file←'assets/scripts/i18n/ej.culture.',Options.locale,'.min.js'
Use'⍎/Syncfusion/',file
:EndIf
∇
:EndClass
:endsection
:EndNamespace