Add the method to allow users to pass in custom flat table settings via a webapp api.
This method accepts an array of objects
Reference to webapp PR (mode/webapp#8396)
More details about the api (mode/issues#315)
A couple notes/questions for you @leqilong :
Does the version number bump with any change to the repo? Specifically, should I bump it here?
Do you have any thoughts on requiring an array of config objects here? We could alternatively type check what is passed in, and if it's an object, pass it to the endpoint as an array with 1 object. Ultimately, the endpoint will always take an array of objects, however.
Do you have any thoughts on the method name here? I just kinda picked one: alamode.customizeTable(arrayOfConfig). One thing that will be slightly different here, is that likely, if we extend this functionality further, we'll probably just extend the interface of the config object. So we likely won't need to keep adding more methods like how there are 3 separate ones for old table customization today. Not sure if there's some specific way you'd prefer to name this to differentiate it from the existing custom table functionality.
Also, used uglify js to minify with the following command uglifyjs --compress --mangle -- alamode.js
Add the method to allow users to pass in custom flat table settings via a webapp api.
A couple notes/questions for you @leqilong :
alamode.customizeTable(arrayOfConfig)
. One thing that will be slightly different here, is that likely, if we extend this functionality further, we'll probably just extend the interface of the config object. So we likely won't need to keep adding more methods like how there are 3 separate ones for old table customization today. Not sure if there's some specific way you'd prefer to name this to differentiate it from the existing custom table functionality.uglify
js to minify with the following commanduglifyjs --compress --mangle -- alamode.js