2

I am new to Lightning framework. I imported lightning design system files into the visualforce page. Now I wan to use apex:inputfield with lightning design.

I don't want to use html tag because I don't know the type of input. Like apex:inputfield display input tag based on type of value in "value" attribute. You don't explicitly have to mention the type of input field.

What Do I have to do to achieve the same.

Any help is appreciated.

kishore
  • 61
  • 1
  • 6

1 Answers1

1

No. You don't use ui components, but use force components.
Example is below and you can find it in auradocs.

<aura:attribute name="account" type="Account" default="{ sobjectType: 'Account' }"/> 
<force:inputField value="{!v.account.Name}" />
hashi
  • 11
  • 2