createItemsForIcon(icon) {
    const iconFamily = icon.getData('icon-family');
    const iconName = icon.getData('icon-name');
    const iconSize = icon.getData('icon-size');

    return [
      new QuickMenuItem(
        QuickMenuType.Select,
        'Icon Family',
        iconFamily,
        newVal => icon.setData('icon-family', newVal),
        config.iconFamilies
      ),
      new QuickMenuItem(QuickMenuType.Text, 'Name', iconName, newVal =>
        icon.setData('icon-name', newVal)
      ),
      new QuickMenuRangeItem('Size', iconSize, 1, 10, newVal => icon.setData('icon-size', newVal))
    ];
  }
/**
   * Creates the quick menu items for an FontAwesomeIcon
   * @param icon {HTMLElement} the icon for which the quick menu should be opened
   * @returns {[*]}
   */
Creates the quick menu items for an FontAwesomeIcon
@param icon {HTMLElement} the icon for which the quick menu should be opened
@returns {[*]}
Creates the quick menu items for an FontAwesomeIcon @param icon { HTMLElement } the icon for which the quick menu should be opened @returns { [ * ] }
createItemsForIcon(icon) {
    const iconFamily = icon.getData('icon-family');
    const iconName = icon.getData('icon-name');
    const iconSize = icon.getData('icon-size');
    return [
      new QuickMenuItem(
        QuickMenuType.Select,
        'Icon Family',
        iconFamily,
        newVal => icon.setData('icon-family', newVal),
        config.iconFamilies
      ),
      new QuickMenuItem(QuickMenuType.Text, 'Name', iconName, newVal =>
        icon.setData('icon-name', newVal)
      ),
      new QuickMenuRangeItem('Size', iconSize, 1, 10, newVal => icon.setData('icon-size', newVal))
    ];
  }
createItemsForIcon ( icon ) { const iconFamily = icon . getData ( 'icon-family' ) ; const iconName = icon . getData ( 'icon-name' ) ; const iconSize = icon . getData ( 'icon-size' ) ; return [ new QuickMenuItem ( QuickMenuType . Select , 'Icon Family' , iconFamily , newVal => icon . setData ( 'icon-family' , newVal ) , config . iconFamilies ) , new QuickMenuItem ( QuickMenuType . Text , 'Name' , iconName , newVal => icon . setData ( 'icon-name' , newVal ) ) , new QuickMenuRangeItem ( 'Size' , iconSize , 1 , 10 , newVal => icon . setData ( 'icon-size' , newVal ) ) ] ; }
Creates the quick menu items for an FontAwesomeIcon
 @param icon {HTMLElement} the icon for which the quick menu should be opened
 @returns {[*]}
Creates the quick menu items for an FontAwesomeIcon @param icon { HTMLElement } the icon for which the quick menu should be opened @returns { [ * ] }