Created
January 4, 2017 19:29
-
-
Save isc-rsingh/effff767c625eab3c808d29f4004f1cc to your computer and use it in GitHub Desktop.
pixiedust SimpleDisplayMeta.py in dir display/table
This file contains hidden or 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 .SimpleDisplay import SimpleDisplay | |
from ..display import * | |
import pixiedust.utils.dataFrameMisc as dataFrameMisc | |
@PixiedustDisplay() | |
class SimpleDisplayMeta(DisplayHandlerMeta): | |
@addId | |
def getMenuInfo(self,entity,dataHandler): | |
if dataFrameMisc.isPySparkDataFrame(entity) or dataFrameMisc.isPandasDataFrame(entity): | |
return [ | |
{"categoryId": "Table", "title": "Simple Table", "icon": "fa-table", "id": "simpleTest"} | |
] | |
else: | |
return [] | |
def newDisplayHandler(self,options,entity): | |
return SimpleDisplay(options,entity) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment