Blocks-Components

- add label parameter to Static components
This commit is contained in:
Ömer Faruk Özdemir 2022-03-17 10:59:13 +03:00
parent 6e293d6940
commit d396c2ce01

View File

@ -2376,12 +2376,14 @@ class Chatbot(Component):
# Static Components # Static Components
class Markdown(Component): class Markdown(Component):
# TODO: might add default parameter to initilization, WDYT Ali Abid? # TODO: might add default parameter to initilization, WDYT Ali Abid?
pass def __init__(self, label):
super().__init__(label=label)
class Button(Component): class Button(Component):
# TODO: might add default parameter to initilization, WDYT Ali Abid? # TODO: might add default parameter to initilization, WDYT Ali Abid?
pass def __init__(self, label):
super().__init__(label=label)
# TODO: (faruk) does this take component or interface as a input? # TODO: (faruk) does this take component or interface as a input?