458458 </ span >
459459 </ a >
460460
461+ < nav class ="md-nav " aria-label ="Extension ">
462+ < ul class ="md-nav__list ">
463+
464+ < li class ="md-nav__item ">
465+ < a href ="#chartlets.Extension.add " class ="md-nav__link ">
466+ < span class ="md-ellipsis ">
467+ add
468+ </ span >
469+ </ a >
470+
471+ </ li >
472+
473+ < li class ="md-nav__item ">
474+ < a href ="#chartlets.Extension.add_contrib_point " class ="md-nav__link ">
475+ < span class ="md-ellipsis ">
476+ add_contrib_point
477+ </ span >
478+ </ a >
479+
480+ </ li >
481+
482+ < li class ="md-nav__item ">
483+ < a href ="#chartlets.Extension.get_contrib_point_names " class ="md-nav__link ">
484+ < span class ="md-ellipsis ">
485+ get_contrib_point_names
486+ </ span >
487+ </ a >
488+
489+ </ li >
490+
491+ < li class ="md-nav__item ">
492+ < a href ="#chartlets.Extension.to_dict " class ="md-nav__link ">
493+ < span class ="md-ellipsis ">
494+ to_dict
495+ </ span >
496+ </ a >
497+
498+ </ li >
499+
500+ </ ul >
501+ </ nav >
502+
461503</ li >
462504
463505 </ ul >
@@ -552,7 +594,8 @@ <h2 id="chartlets.Extension" class="doc doc-heading">
552594 < div class ="doc doc-contents first ">
553595
554596
555- < p > A UI Extension.</ p >
597+ < p > An extension for a UI application that
598+ uses the Chartlets JS framework.</ p >
556599
557600
558601
@@ -567,6 +610,160 @@ <h2 id="chartlets.Extension" class="doc doc-heading">
567610
568611
569612
613+ < div class ="doc doc-object doc-function ">
614+
615+
616+ < h3 id ="chartlets.Extension.add " class ="doc doc-heading ">
617+ < code class ="highlight language-python "> < span class ="n "> add</ span > < span class ="p "> (</ span > < span class ="n "> contribution</ span > < span class ="p "> )</ span > </ code >
618+
619+ </ h3 >
620+
621+
622+ < div class ="doc doc-contents ">
623+
624+ < p > Add a contribution to this extension.</ p >
625+
626+
627+ < p > < span class ="doc-section-title "> Parameters:</ span > </ p >
628+ < table >
629+ < thead >
630+ < tr >
631+ < th > Name</ th >
632+ < th > Type</ th >
633+ < th > Description</ th >
634+ < th > Default</ th >
635+ </ tr >
636+ </ thead >
637+ < tbody >
638+ < tr class ="doc-section-item ">
639+ < td > < code > contribution</ code > </ td >
640+ < td >
641+ < code > < a class ="autorefs autorefs-internal " title ="chartlets.contribution.Contribution " href ="../contribution/#chartlets.Contribution "> Contribution</ a > </ code >
642+ </ td >
643+ < td >
644+ < div class ="doc-md-description ">
645+ < p > The contribution.
646+ Its type must be an instance of one of the
647+ registered contribution types.</ p >
648+ </ div >
649+ </ td >
650+ < td >
651+ < em > required</ em >
652+ </ td >
653+ </ tr >
654+ </ tbody >
655+ </ table >
656+
657+ </ div >
658+
659+ </ div >
660+
661+ < div class ="doc doc-object doc-function ">
662+
663+
664+ < h3 id ="chartlets.Extension.add_contrib_point " class ="doc doc-heading ">
665+ < code class ="highlight language-python "> < span class ="n "> add_contrib_point</ span > < span class ="p "> (</ span > < span class ="n "> name</ span > < span class ="p "> ,</ span > < span class ="n "> item_type</ span > < span class ="p "> )</ span > </ code >
666+
667+ < span class ="doc doc-labels ">
668+ < small class ="doc doc-label doc-label-classmethod "> < code > classmethod</ code > </ small >
669+ </ span >
670+
671+ </ h3 >
672+
673+
674+ < div class ="doc doc-contents ">
675+
676+ < p > Add a contribution point.</ p >
677+
678+
679+ < p > < span class ="doc-section-title "> Parameters:</ span > </ p >
680+ < table >
681+ < thead >
682+ < tr >
683+ < th > Name</ th >
684+ < th > Type</ th >
685+ < th > Description</ th >
686+ < th > Default</ th >
687+ </ tr >
688+ </ thead >
689+ < tbody >
690+ < tr class ="doc-section-item ">
691+ < td > < code > name</ code > </ td >
692+ < td >
693+ < code > str</ code >
694+ </ td >
695+ < td >
696+ < div class ="doc-md-description ">
697+ < p > The name of the contribution point.</ p >
698+ </ div >
699+ </ td >
700+ < td >
701+ < em > required</ em >
702+ </ td >
703+ </ tr >
704+ < tr class ="doc-section-item ">
705+ < td > < code > item_type</ code > </ td >
706+ < td >
707+ < code > type[< a class ="autorefs autorefs-internal " title ="chartlets.contribution.Contribution " href ="../contribution/#chartlets.Contribution "> Contribution</ a > ]</ code >
708+ </ td >
709+ < td >
710+ < div class ="doc-md-description ">
711+ < p > The type of items that can be added
712+ to the new contribution point.</ p >
713+ </ div >
714+ </ td >
715+ < td >
716+ < em > required</ em >
717+ </ td >
718+ </ tr >
719+ </ tbody >
720+ </ table >
721+
722+ </ div >
723+
724+ </ div >
725+
726+ < div class ="doc doc-object doc-function ">
727+
728+
729+ < h3 id ="chartlets.Extension.get_contrib_point_names " class ="doc doc-heading ">
730+ < code class ="highlight language-python "> < span class ="n "> get_contrib_point_names</ span > < span class ="p "> ()</ span > </ code >
731+
732+ < span class ="doc doc-labels ">
733+ < small class ="doc doc-label doc-label-classmethod "> < code > classmethod</ code > </ small >
734+ </ span >
735+
736+ </ h3 >
737+
738+
739+ < div class ="doc doc-contents ">
740+
741+ < p > Get names of all known contribution points added
742+ by the < code > add_contrib_point()</ code > method.</ p >
743+ < p > Returns: Tuple of registered contribution point names.</ p >
744+
745+ </ div >
746+
747+ </ div >
748+
749+ < div class ="doc doc-object doc-function ">
750+
751+
752+ < h3 id ="chartlets.Extension.to_dict " class ="doc doc-heading ">
753+ < code class ="highlight language-python "> < span class ="n "> to_dict</ span > < span class ="p "> ()</ span > </ code >
754+
755+ </ h3 >
756+
757+
758+ < div class ="doc doc-contents ">
759+
760+ < p > Convert this extension into a JSON-serializable dictionary.</ p >
761+ < p > Returns: A dictionary representing this extension.</ p >
762+
763+ </ div >
764+
765+ </ div >
766+
570767
571768
572769 </ div >
0 commit comments