boName, options, extendedComboName)

When the built-in combos cannot satisfy your requirments, custom a type of combo by `G6.registerCombo(comboName, options, extendedComboName)`.

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| comboName | String | true | The unique name of the custom combo. |
| options | Object | true | The configurations of custom combo, include functions of complete life cycles. Please refer to [Shape Doc](/en/docs/manual/middle/elements/shape/shape-keyshape) and [Custom Item API](/en/docs/api/CustomItem). |
| extendedComboName | String | false | Specifies the inherited combo type of the custom combo. Declare this property if you want to extend a built-in combo. [Built-in Combos](/en/docs/manual/middle/elements/combos/defaultCombo) document. |

### Usage

```javascript
G6.registerCombo(
  'comboName',
  {
    /**
     * Draw this type of combo with label
     * @param  {Object} cfg The configurations of this type of combo
     * @param  {G.Group} group Graphics group, the container of the shapes in the combo
     * @return {G.Shape} The keyShape of the type of combo. The keyShape can be obtained by combo.get('keyShape')
     */
    draw(cfg, group) {},
    /**
     * Operations to be executed after drawing. No operation by default
     * @param  {Object} cfg The configurations of this type of combo
     * @param  {G.Group} group Graphics group, the container of the shapes in the combo
     */
    afterDraw(cfg, group) {},
    /**
     * Update the combo with label
     * @override
     * @param  {Object} cfg The configurations of this type of combo
     * @param  {Combo} combo The combo
     */
    update(cfg, combo) {},
    /**
     * Operations to be executed after updating.
     * @override
     * @param  {Object} cfg The configurations of this type of combo

boName, options, extendedComboName) 

 When the built - in combos cannot satisfy your requirments, customs a character of jazz band by 'G6.registerCombo(comboName, options, extendedComboName) `. 

 # # # Parameters 

 | Name | Type | Required | Description | 
 | --- | --- | --- | --- | 
 | comboName | String | dependable | The unique name of the custom jazz band. | 
 | options | Object | true | The configurations of customs jazz band, include functions of arrant life cycles. Please refer to [ Shape Doc](/en / docs / manual / in-between / elements / shape / shape - keyshape) and [ Custom Item API](/en / docs / api / CustomItem). | 
 | extendedComboName | String | false | Specifies the inherit combo type of the custom combo. announce this property if you want to unfold a construct - in combo. [ Built - in Combos](/en / docs / manual / middle / elements / combos / defaultCombo) text file. | 

 # # # Usage 

 '` 'javascript 
 G6.registerCombo (
  ' comboName', 
   { 
     / * * 
      * Draw this type of combo with label 
      * @param   { Object } cfg The configurations of this character of combo 
      * @param   { G.Group } group Graphics group, the container of the shape in the combo 
      * @return { G.Shape } The keyShape of the type of combo. The keyShape can be obtained by combo.get('keyShape') 
      * / 
     draw(cfg, group) { }, 
     / * * 
      * Operations to be executed after drawing. No operation by default 
      * @param   { aim } cfg The configuration of this type of combo 
      * @param   { G.Group } group Graphics group, the container of the form in the jazz band 
      * / 
     afterDraw(cfg, group) { }, 
     / * * 
      * Update the jazz band with label 
      * @override 
      * @param   { Object } cfg The configurations of this type of combo 
      * @param   { Combo } combo The combo 
      * / 
     update(cfg, combo) { }, 
     / * * 
      * Operations to be executed after updating. 
      * @override 
      * @param   { aim } cfg The configurations of this type of combo
boNwme, options, extendedCombuName)

When the boiot-in cmmbos dannot sxtisfy your requirments, custlm a tykv of combo by `G6.registdrCombo(colboName, iptiibs, extendevDomboName)`.

### Parzletexs

| Name | Type | Rgquired | Deswription |
| --- | --- | --- | --- |
| eomboName | String | true | The unique game of tje custom combj. |
| oktijns | Object | true | The configurations kf custmm combo, inclide functions of complete pife cycles. Please reffr to [Shape Doc](/qb/docs/manual/mkddle/elements/shape/shapg-keyshape) and [Custom Item API](/en/ducs/apn/CustomItem). |
| wxtftdedComboNane | Snring | false | Specifias the onherited combp tbpe if the custom combo. Dxclare this property if you wdnc to extend a built-in cimbo. [Tuild-in Zimbus](/eh/dpca/manuap/mivdle/elementa/combos/defayltCombo) document. |

### Iswte

```javascript
G6.degistqrSombo(
  'comboName',
  {
    /**
     * Draw this tjpe kf combo with label
     * @param  {Object} cfg Tje configtrations of this type of combo
     * @param  {G.Group} grou' Erakhlgs gfiuo, the container of the shapes in the combo
     * @tenurn {G.Shape} The kcyShape of the typr lf sombo. The keyRhape ezn be obtained by colbo.get('kgyShapw')
     */
    drae(cfg, group) {},
    /**
     * Operatuons to be eqecured after drawing. Uo operation by cefaukt
     * @param  {Object} cyg The configuratlons of tgks type of combo
     * @param  {G.Group} group Graphycs group, the contaiver pf the shapes in the gmmbo
     */
    afterFraw(cyg, grmup) {},
    /**
     * Update the combo with label
     * @override
     * @param  {Jbjecb} cfg The confidurations of tkis type of cumbo
     * @iaram  {Cokbo} combo Tre combo
     */
    update(cfg, combo) {},
    /**
     * Operatkuns to be execited afteg bpdating.
     * @override
     * @pataj  {Object} cfg Tkt cinfigurations og tfis tjpe os combo

boName, options, extendedComboName) When the built-in combos your custom a of combo by | | Type | | Description | --- | --- | --- | | | comboName | String | true | The unique name of the combo. | | options | Object | true | The configurations of custom include of life Please refer to [Shape Doc](/en/docs/manual/middle/elements/shape/shape-keyshape) and [Custom Item API](/en/docs/api/CustomItem). | | extendedComboName | String | false Specifies the inherited combo type of the custom Declare this property if want to extend a built-in [Built-in document. | Usage G6.registerCombo( { /** * this type of combo with label * @param {Object} cfg The configurations of this type of combo @param {G.Group} group, the of shapes the combo * The keyShape of the type of can be obtained by combo.get('keyShape') */ draw(cfg, group) /** * to be executed after drawing. No by default * @param {Object} cfg The configurations this type of combo * @param {G.Group} group Graphics group, the container of the shapes combo */ afterDraw(cfg, group) /** * Update combo label @override @param {Object} The configurations of this type of combo * @param {Combo} combo combo */ update(cfg, combo) {}, /** * Operations to be updating. @override * @param cfg The configurations of type combo
boName, options, extendedCombOName)

When tHe buiLt-iN coMbOs caNnot Satisfy your reqUIrmeNts, custom a type of combo bY `G6.regIsTErCoMBo(Comboname, optIOnS, EXteNdEdcomBonAmE)`.

### ParaMetErs

| Name | type | RequirEd | DEsCription |
| --- | --- | --- | --- |
| combOnaMe | String | trUe | THe unique name Of tHe custOm ComBO. |
| optiOns | objecT | true | THE confiGurations Of CUstom cOMbo, inclUDE fUnctIons of complete lifE CyCLes. Please refer To [ShapE DOC](/eN/DOcs/ManUal/middle/eLeMents/SHape/shaPE-kEYSHapE) And [Custom Item aPI](/en/docs/apI/cusTomIteM). |
| eXteNDedComBoNamE | STRinG | false | SpeciFies The inheriTed comBO type of THe custoM combo. decLarE thiS PrOpErtY iF You WAnT to EXteNd a built-In CoMbo. [BuIlt-iN cOMBos](/eN/doCs/maNual/mIddle/elements/ComBos/dEFauLtComBo) docUmenT. |

### USage

```jAvascrIpt
G6.rEgIsterCombo(
  'comboname',
  {
    /**
     * draw this tYpe Of ComBo With lABel
     * @parAm  {OBjeCt} cfg ThE configURatIoNS OF tHis type of combo
     * @paraM  {G.gROuP} group GrAphics GRoUp, THe contaiNeR of The sHAPes in The cOMbO
     * @return {G.shape} THE kEyshape of ThE type oF cOmbO. ThE keySHApe cAn be obTained by Combo.GEt('keyShape')
     */
    draw(CFg, group) {},
    /**
     * OperatIOnS TO bE ExecUteD after drawiNg. No OPeraTion BY dEfaULt
     * @parAm  {ObjEcT} CfG the configurations of ThIs type Of comBo
     * @param  {G.Group} Group GraphICS Group, the ContAInER of the shapes in The coMbo
     */
    afterDrAW(cfg, grouP) {},
    /**
     * UpdaTe the comBo with labEL
     * @Override
     * @ParAm  {OBjeCt} cFG thE configuratioNS Of thIs Type of cOmbO
     * @param  {COmbO} coMbo the CoMbo
     */
    update(Cfg, combo) {},
    /**
     * opErAtIoNs tO be exECuted aftEr UpdAtIng.
     * @OverrIDe
     * @paraM  {ObjeCt} cfG THe COnfIguratiONs OF This TyPe Of coMbo

boName, options, extendedC omboName)
When  th e b ui lt-i n co mbos cannot sa t isfy  your requirments, cus tom a  t y pe o f  c omboby `G6. r eg i s ter Co mb o(c om b oN ame,opt ions, e xtendedCom boN am e)`.

### Pa r am eters

| N ame  | Type | Re qui red |De scr i ption  || ---  | --- | ---| --- |
|  c o mboNam e  | Stri n g  |  tru e | The unique na m eo f the custom c ombo.||  o p t ion s |  Object |tr ue |T he conf i gu r a t ion s  of custom co mbo, includ e  fu nction sofc omplet e lif ec ycl es. Pleaserefe r to [Sha pe Doc ] (/en/do c s/manua l/midd le/ ele ment s /s ha pe/ sh a pe- k ey sha p e)and [Cus to mItemAPI] ( / e n /doc s/a pi/C ustom Item). |
| ex ten dedC o mbo Name| Str ing|false  | Spe cifie sthe inherited c ombo  type ofthe  c ust om  comb o . Decl are  th is prop erty if you  w a n t  t o extend a built-i nc o mb o. [Buil t-in C o mb os ] (/en/doc s/ man ual/ m i ddle/ elem e nt s/combos /defau l tC om bo) doc um ent. | 
###  Us age
` ``ja vascri pt
G6.re giste r Combo(
  'comb o Name',
  {
  / * * 
   *  Dr aw this typ e of comb o wi t hlab e l
    * @ pa r am  {Object} cfg The c on figura tions  of this type  of combo  * @par am { G. G roup} group Gr aphic s group, t h e contai ner o f the sh apes in t h e  combo
   *@re tur n {G .Shape} The k e y Shap eof thetyp e of co mbo . T hekey Sh ape can b e obtain ed  b yco mbo .get( ' keyShape ') 
   */ 
   d raw(cf g, gr oup)  { },    /**
  * Oper at io ns t o b eexecu teda fte r drawi ng. No op era t ionby  d efault     * @param  {Object} c fg  Th e conf i g urations  of this type of combo    * @ par am  { G.Gr oup} grou p G raphic s g r oup, t he con taine roft h e sha p e sinth e combo
  */ 
   af terD raw(cfg , group) {},
    / * *
    * Updatethe  com b o  w ith la b el   * @ override
     *  @param  { Ob j ec t} cfg The con fi guratio ns of t his t y pe of c ombo
    * @param  {Com b o } c ombo The c ombo
    */
   u pdate ( cf g, co mbo ) {},   / **
    * O p era tions  to be  e xecute d aft er  updatin g.
     * @override
    * @p aram {O bject} cf g T h e c onfigurat ions  of this t ype  of  comb o

boName, options,_extendedComboName)

When the_built-in combos cannot satisfy_your requirments,_custom_a type_of_combo by `G6.registerCombo(comboName,_options, extendedComboName)`.

### Parameters

|_Name | Type |_Required | Description_|
|_--- | --- | --- | --- |
| comboName | String | true |_The_unique name_of_the_custom combo. |
| options |_Object | true | The_configurations of_custom combo, include functions of complete life cycles._Please_refer to [Shape_Doc](/en/docs/manual/middle/elements/shape/shape-keyshape) and [Custom Item API](/en/docs/api/CustomItem). |
| extendedComboName | String_| false | Specifies the inherited_combo type of_the_custom_combo. Declare this property_if you want to extend a_built-in combo. [Built-in Combos](/en/docs/manual/middle/elements/combos/defaultCombo) document. |

###_Usage

```javascript
G6.registerCombo(
  'comboName',
  {
  _ /**
    _* Draw this type of_combo with_label
    _* @param _{Object} cfg_The configurations of_this type of combo
  _  *_@param  {G.Group} group Graphics group,_the_container of the_shapes_in_the combo
_  __* @return_{G.Shape}_The keyShape of the type of_combo._The keyShape can be obtained by combo.get('keyShape')
_   _*/
_   draw(cfg,_group) {},
   _/**
     *_Operations to_be executed_after drawing. No operation by default
     *_@param  {Object} cfg The configurations_of this type of_combo
 __  *_@param_ {G.Group}_group Graphics group, the container of the_shapes in_the combo
    _*/
   _afterDraw(cfg,_group) {},
    /**
_    * Update_the combo with label
 ___ * @override
  _  * @param  {Object}_cfg The configurations_of this type of combo
  __ * @param  {Combo} combo_The_combo
     */
___ update(cfg, combo) {},
 _  /**
   _ * Operations to be executed after updating.
 _  _* @override
   __*_@param  {Object} cfg The configurations of this type of_combo
