Last active
April 18, 2017 22:26
-
-
Save vabarbosa/b7e093e4b520c915e89277dc2f0f7ea5 to your computer and use it in GitHub Desktop.
PixieDust Extensibility API - Simple Table Metadata
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
@PixiedustDisplay() | |
class TestPluginMeta(DisplayHandlerMeta): | |
@addId | |
def getMenuInfo(self,entity,dataHandler): | |
if entity.__class__.__name__ == "DataFrame": | |
return [ | |
{ | |
"categoryId": "Table", | |
"title": "My Simple Table", | |
"icon": "fa-table", | |
"id": "mySimpleTable" | |
} | |
] | |
else: | |
return [] | |
def newDisplayHandler(self,options,entity): | |
return TestDisplay(options,entity) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment