3

I want to remove selector tag and want to render my component as element not as class or attribute actually my real problem is i have an ext js application where i have a ext combo and i need to create a component which can able to convert it to angular2 html for example

this is ext combo html

<ext:ComboBox runat="server" 
              ID="cmbColumn" 
              Width="280"
              FieldLabel="Update Data For " 
              LabelSeparator=" " 
              LabelWidth="100"
              IDMode="Static">
              <ng-content></ng-content>
    <Items>
        <ext:ListItem Value="POSSyncStatus" Text="POS Sync Status" />
        <ext:ListItem Value="IsDepartmentOpen" Text="Allow Open Sales In Department" />
        <ext:ListItem Value="IsFractionalQtyAllowedFlag" Text="Allow Partial Quantity Sales" />
        <ext:ListItem Value="IsLoyaltyRedeemEligibleFlag " Text="Allow Loyalty Redeem Sales" />
        <ext:ListItem Value="IsItemReturnableFlag" Text="Allow Item Returns" />
        <ext:ListItem Value="AllowFoodStampsFlag" Text="Allow Food Stamp Sales" />
        <ext:ListItem Value="AreSpecialDiscountsAllowedFlag" Text="Allow Special Discounts" />
        <ext:ListItem Value="PriceRequiredFlag" Text="Flexible Pricing For Items" />
        <ext:ListItem Value="SalesRestriction" Text="Sales Restriction" />
        <ext:ListItem Value="Tax" Text="Store Tax" />
        <ext:ListItem Value="DepartmentTypes" Text="Department Types" />
        <ext:ListItem Value="ActiveFlag" Text="Active" />
        <ext:ListItem Value="ProfitMargin" Text="Profit Margin" />
        <ext:ListItem Value="ProfitPercent" Text="Profit Percent" />
    </Items>
</ext:ComboBox>

and i want a to create some component that will help me to render this as

<select>
<option>A</option>
</select>

my idea is create component ext:combo and template is select but it also render ext:combo in html that is the problem and i thats why i can not write it as a class or attribute because i dont want to change my previous html

0 Answers0