Skip to content

Instantly share code, notes, and snippets.

@vabarbosa
Last active April 18, 2017 22:26
Show Gist options
  • Save vabarbosa/b7e093e4b520c915e89277dc2f0f7ea5 to your computer and use it in GitHub Desktop.
Save vabarbosa/b7e093e4b520c915e89277dc2f0f7ea5 to your computer and use it in GitHub Desktop.
PixieDust Extensibility API - Simple Table Metadata
@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