MCPcopy Index your code
hub / github.com/slackapi/python-slack-sdk / View

Class View

slack_sdk/models/views/__init__.py:9–126  ·  view source on GitHub ↗

View object for modals and Home tabs. https://docs.slack.dev/reference/views/

Source from the content-addressed store, hash-verified

7
8
9class View(JsonObject):
10 """View object for modals and Home tabs.
11
12 https://docs.slack.dev/reference/views/
13 """
14
15 types = ["modal", "home", "workflow_step"]
16
17 attributes = {
18 "type",
19 "id",
20 "callback_id",
21 "external_id",
22 "team_id",
23 "bot_id",
24 "app_id",
25 "root_view_id",
26 "previous_view_id",
27 "title",
28 "submit",
29 "close",
30 "blocks",
31 "private_metadata",
32 "state",
33 "hash",
34 "clear_on_close",
35 "notify_on_close",
36 }
37
38 def __init__(
39 self,
40 # "modal", "home", and "workflow_step"
41 type: str,
42 id: Optional[str] = None,
43 callback_id: Optional[str] = None,
44 external_id: Optional[str] = None,
45 team_id: Optional[str] = None,
46 bot_id: Optional[str] = None,
47 app_id: Optional[str] = None,
48 root_view_id: Optional[str] = None,
49 previous_view_id: Optional[str] = None,
50 title: Optional[Union[str, dict, PlainTextObject]] = None,
51 submit: Optional[Union[str, dict, PlainTextObject]] = None,
52 close: Optional[Union[str, dict, PlainTextObject]] = None,
53 blocks: Optional[Sequence[Union[dict, Block]]] = None,
54 private_metadata: Optional[str] = None,
55 state: Optional[Union[dict, "ViewState"]] = None,
56 hash: Optional[str] = None,
57 clear_on_close: Optional[bool] = None,
58 notify_on_close: Optional[bool] = None,
59 **kwargs,
60 ):
61 self.type = type
62 self.id = id
63 self.callback_id = callback_id
64 self.external_id = external_id
65 self.team_id = team_id
66 self.bot_id = bot_id

Callers 15

open_modalFunction · 0.90
slack_appFunction · 0.90
run_methodMethod · 0.90
test_eqMethod · 0.90

Calls

no outgoing calls

Tested by 14

run_methodMethod · 0.72
test_eqMethod · 0.72