Superclass to use when generating a validator class for this node Returns ------- str
(self)
| 402 | |
| 403 | @property |
| 404 | def name_base_validator(self) -> str: |
| 405 | """ |
| 406 | Superclass to use when generating a validator class for this node |
| 407 | |
| 408 | Returns |
| 409 | ------- |
| 410 | str |
| 411 | """ |
| 412 | if self.path_str in CUSTOM_VALIDATOR_DATATYPES: |
| 413 | validator_base = CUSTOM_VALIDATOR_DATATYPES[self.path_str] |
| 414 | elif self.plotly_name.endswith("src") and self.datatype == "string": |
| 415 | validator_base = "_plotly_utils.basevalidators.SrcValidator" |
| 416 | elif self.plotly_name.endswith("dash") and self.datatype == "string": |
| 417 | validator_base = "_plotly_utils.basevalidators.DashValidator" |
| 418 | elif self.plotly_name == "title" and self.datatype == "compound": |
| 419 | validator_base = "_plotly_utils.basevalidators.TitleValidator" |
| 420 | else: |
| 421 | datatype_title_case = self.datatype.title().replace("_", "") |
| 422 | validator_base = ( |
| 423 | f"_plotly_utils.basevalidators.{datatype_title_case}Validator" |
| 424 | ) |
| 425 | |
| 426 | return validator_base |
| 427 | |
| 428 | # Validators |
| 429 | def get_validator_params(self): |