This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.listview-masonry > ul { | |
column-count: 3; | |
column-gap: 24px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @param {Nanoflow} asyncTask | |
* @param {Nanoflow} callback | |
* @returns {Promise.<void>} | |
*/ | |
export async function AsyncJSAction(asyncTask, callback) { | |
// BEGIN USER CODE | |
asyncTask().then(callback) | |
// END USER CODE | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.listview-horizontal > ul { | |
display: flex; | |
flex-wrap: wrap; | |
} | |
.listview-horizontal > ul > li { | |
min-width: 200px; | |
flex: 1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.a = () => {console.log('hello')} | |
const beforeFunc = (otherFunc) => { | |
return () => { | |
console.log('me first'); | |
otherFunc(); | |
} | |
} | |
window.a = beforeFunc(window.a); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Text} from 'react-native'; | |
Text.defaultProps = Text.defaultProps || {}; | |
Text.defaultProps.maxFontSizeMultiplier = 1.25; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from https://stackoverflow.com/a/61511955/1513051 | |
function waitForElement(selector) { | |
return new Promise(resolve => { | |
if (document.querySelector(selector)) { | |
return resolve(document.querySelector(selector)); | |
} | |
const observer = new MutationObserver(mutations => { | |
if (document.querySelector(selector)) { | |
resolve(document.querySelector(selector)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* add the "dg-checkboxes" class to your data grid in studio pro */ | |
.mx-datagrid.dg-checkboxes tbody tr:after{ | |
color: red; | |
font-size: xx-large; | |
position: absolute; | |
left: -15px | |
} | |
.mx-datagrid.dg-checkboxes tbody tr.selected:after{ | |
content:"☑"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.tabs-vertical { | |
display: flex; | |
> ul { | |
// tabs | |
flex: 1; | |
border: none; | |
> li { | |
&.active { | |
border-left: 0.35em solid $brand-inverse; | |
margin-left: -0.35em; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////// | |
// PLUGGABLE WIDGET PROPS // | |
//////////////////////////// | |
"Pluggable Property Group": { | |
"prefix": "pprop-group", | |
"body": [ | |
"<propertyGroup caption=\"${1|General,Behavior,Data Source,Appearance|}\">", | |
"</propertyGroup>" | |
] | |
}, |
NewerOlder