Utility methods for parsing page tokens that are resolved at page render time.
More...
Utility methods for parsing page tokens that are resolved at page render time.
◆ ExtractIDs()
static List<string> Ext.Net.TokenUtils.ExtractIDs |
( |
string |
script | ) |
|
|
inlinestatic |
Extracts IDs referenced in script blocks.
- Parameters
-
script | The script block to extract IDs from. |
- Returns
- A list of string IDs extracted from the script.
◆ IDWrap()
static string Ext.Net.TokenUtils.IDWrap |
( |
string |
id | ) |
|
|
inlinestatic |
◆ IsAlertToken()
static bool Ext.Net.TokenUtils.IsAlertToken |
( |
string |
script | ) |
|
|
inlinestatic |
Checks if the script is an alert-token script. The whole script block must begin with !{ and end with } in order for this to be considered.
◆ IsDirectMethodsToken()
static bool Ext.Net.TokenUtils.IsDirectMethodsToken |
( |
string |
script | ) |
|
|
inlinestatic |
Checks whether the provided script contains one or more occurrences of the '#{DirectMethods}' token.
- Parameters
-
script | The script block to check against. |
- Returns
- True if contains, false if no occurrence found.
◆ IsFunction()
static bool Ext.Net.TokenUtils.IsFunction |
( |
string |
script | ) |
|
|
inlinestatic |
◆ IsFunctionToken()
static bool Ext.Net.TokenUtils.IsFunctionToken |
( |
string |
script | ) |
|
|
inlinestatic |
◆ IsIDToken()
static bool Ext.Net.TokenUtils.IsIDToken |
( |
string |
script | ) |
|
|
inlinestatic |
◆ IsRawToken()
static bool Ext.Net.TokenUtils.IsRawToken |
( |
string |
script | ) |
|
|
inlinestatic |
◆ IsSelectToken()
static bool Ext.Net.TokenUtils.IsSelectToken |
( |
string |
script | ) |
|
|
inlinestatic |
◆ NormalizeRawToken()
static string Ext.Net.TokenUtils.NormalizeRawToken |
( |
string |
script | ) |
|
|
inlinestatic |
◆ ParseAndNormalize() [1/2]
static string Ext.Net.TokenUtils.ParseAndNormalize |
( |
string |
script | ) |
|
|
inlinestatic |
◆ ParseAndNormalize() [2/2]
static string Ext.Net.TokenUtils.ParseAndNormalize |
( |
string |
script, |
|
|
Control |
seed |
|
) |
| |
|
inlinestatic |
◆ ParseTokens() [1/3]
static string Ext.Net.TokenUtils.ParseTokens |
( |
string |
script | ) |
|
|
inlinestatic |
◆ ParseTokens() [2/3]
static string Ext.Net.TokenUtils.ParseTokens |
( |
string |
script, |
|
|
bool |
addRawMarker, |
|
|
Control |
seed |
|
) |
| |
|
inlinestatic |
◆ ParseTokens() [3/3]
static string Ext.Net.TokenUtils.ParseTokens |
( |
string |
script, |
|
|
Control |
seed |
|
) |
| |
|
inlinestatic |
◆ RawWrap()
static string Ext.Net.TokenUtils.RawWrap |
( |
string |
script | ) |
|
|
inlinestatic |
◆ RemoveMarkers()
static string Ext.Net.TokenUtils.RemoveMarkers |
( |
string |
script | ) |
|
|
inlinestatic |
◆ ReplaceAlertToken()
static string Ext.Net.TokenUtils.ReplaceAlertToken |
( |
string |
script | ) |
|
|
inlinestatic |
◆ ReplaceDirectMethods()
static string Ext.Net.TokenUtils.ReplaceDirectMethods |
( |
string |
script, |
|
|
Control |
seed |
|
) |
| |
|
inlinestatic |
Replaces any occurrence of the ${DirectMethods} token by its resolved namespace and path names. Usually App.direct. Also matches '${ DirectMethods }' (any amount of spaces stripped).
- Parameters
-
script | The script block to replace the token occurrences. |
seed | The base control where the script is contextualized. |
- Returns
- The full replaced script if one or more occurrences found. The same script if no matching token is found.
◆ ReplaceFunctionToken()
static string Ext.Net.TokenUtils.ReplaceFunctionToken |
( |
string |
script | ) |
|
|
inlinestatic |
◆ ReplaceIDTokens()
static string Ext.Net.TokenUtils.ReplaceIDTokens |
( |
string |
script, |
|
|
Control |
seed |
|
) |
| |
|
inlinestatic |
Parses the script block looking for ID tags (#{ID}/#{ ID }) and translate them to either ns.ID (App.ID) or Ext.get('ID') if ID not a statically defined control ID on page.
- Parameters
-
script | The script block. |
seed | The base control where the script comes from. |
- Returns
◆ ReplaceRawToken()
static string Ext.Net.TokenUtils.ReplaceRawToken |
( |
string |
script | ) |
|
|
inlinestatic |
◆ ReplaceSelectTokens()
static string Ext.Net.TokenUtils.ReplaceSelectTokens |
( |
string |
script | ) |
|
|
inlinestatic |
◆ SelectWrap()
static string Ext.Net.TokenUtils.SelectWrap |
( |
string |
id | ) |
|
|
inlinestatic |
◆ Page
Page Ext.Net.TokenUtils.Page |
|
staticget |
◆ Settings
The documentation for this class was generated from the following file: