congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo For Javascript
Item
Code IndexAdd Tabnine to your IDE (free)

How to use
Item
function
in
antd

Best JavaScript code snippets using antd.Item(Showing top 15 results out of 954)

origin: cube-js/cube.js

// Can't be a Pure Component due to Dropdown lookups overlay component type to set appropriate styles
const memberMenu = (onClick, availableMembers) => (
 <Menu>
  {availableMembers.length ? (
   availableMembers.map((m) => (
    <Menu.Item key={m.name} onClick={() => onClick(m)}>
     {m.title}
    </Menu.Item>
   ))
  ) : (
   <Menu.Item disabled>No members found</Menu.Item>
  )}
 </Menu>
)
origin: cube-js/cube.js

frameworks.map((f) => (
     <Menu.Item key={f.id}>{f.title}</Menu.Item>
    ))
origin: cube-js/cube.js

renderFilesMenu() {
  const { selectedFile, files } = this.state;
  return (
   <Menu
    mode="inline"
    onClick={({ key }) => {
     playgroundAction('Select File');
     this.setState({ selectedFile: key });
    }}
    selectedKeys={selectedFile ? [selectedFile] : []}
   >
    {files.map((f) => (
     <Menu.Item key={f.fileName}>{f.fileName}</Menu.Item>
    ))}
   </Menu>
  );
 }
origin: cube-js/cube.js

const SelectChartType = ({ chartType, updateChartType }) => {
 const menu = (
  <Menu>
   {ChartTypes.map((m) => (
    <Menu.Item key={m.title} onClick={() => updateChartType(m.name)}>
     {m.icon} {m.title}
    </Menu.Item>
   ))}
  </Menu>
 );

 const foundChartType = ChartTypes.find((t) => t.name === chartType);
 return (
  <ButtonDropdown overlay={menu} icon={foundChartType.icon}>
   {foundChartType.title}
  </ButtonDropdown>
 );
}
origin: cube-js/cube.js

  style={{ lineHeight: '64px' }}
  <Menu.Item key="/"><Link to="/">Track Stories</Link></Menu.Item>
  <Menu.Item key="/statistics"><Link to="/statistics">Statistics</Link></Menu.Item>
 </Menu>
</Header>
  }}
  <Breadcrumb.Item>
   <Link to="/">Dashboard</Link>
  </Breadcrumb.Item>
  {match && match.params && match.params.storyId && (
   <Breadcrumb.Item>Story #{match.params.storyId}</Breadcrumb.Item>
  )}
 </Breadcrumb>
origin: cube-js/cube.js

overlay={
 <Menu>
  <Menu.Item key="/build">
   <Link to="/build">Build</Link>
  </Menu.Item>
  <Menu.Item key="/dashboard">
   <Link to="/dashboard">Dashboard App</Link>
  </Menu.Item>
  <Menu.Item key="/schema">
   <Link to="/schema">Schema</Link>
  </Menu.Item>
 </Menu>
origin: cube-js/cube.js

 {member.granularities.length ? (
  member.granularities.map((m) => (
   <Menu.Item key={m.title} onClick={() => onClick(m)}>
    {m.title}
   </Menu.Item>
  ))
 ) : (
  <Menu.Item disabled>No members found</Menu.Item>
 )}
</Menu>
<Menu>
 {DateRanges.map((m) => (
  <Menu.Item key={m.title || m.value} onClick={() => onClick(m)}>
   {m.title || m.value}
  </Menu.Item>
 ))}
</Menu>
origin: cube-js/cube.js

  <Menu.Item key={library.value}>{library.title}</Menu.Item>
 ))}
</Menu>
  <Menu.Item key={f.id}>{f.title}</Menu.Item>
 ))}
</Menu>
  <Menu.Item key={f.name}>{f.description}</Menu.Item>
 ))}
</Menu>
  <Form.Item label="Framework">
   <Dropdown overlay={frameworkMenu}>
    <Button>
    </Button>
   </Dropdown>
  </Form.Item>
  {frameworkItem && frameworkItem.docsLink && (
   <Alert
  <Form.Item label="Main Template">
   <Dropdown
    overlay={templatePackagesMenu}
    </Button>
   </Dropdown>
  </Form.Item>
origin: cube-js/cube.js

chartLibraries.map((library) => (
     <Menu.Item key={library.value}>{library.title}</Menu.Item>
    ))
origin: 36node/sketch

const RememberMe = () => (
 <Form.Item name="remember" valuePropName="checked" noStyle>
  <Checkbox>Remember me</Checkbox>
 </Form.Item>
)
origin: shiyangzhaoa/call-club

const Steps = (props) => (
 <Timeline>
  {props.steps.map(item => (
   <Timeline.Item key={item.title} color={item.finshed ? 'green' : '#eee'}>
    {item.title}
   </Timeline.Item>
  ))}
 </Timeline>
)
origin: MrSaints/wiki-spa-example

const DocumentsList = ({ documents, renderItem }) => (
  <List
    bordered
    className={`${styles.list}`}
    dataSource={documents}
    size="large"
    renderItem={item => <List.Item>{renderItem(item)}</List.Item>}
  />
)
origin: felipepastorelima/react-pet-hotel

render() {
  const { label, name, form, layout } = this.props;

  return (
   <Form.Item {...layout} label={label}>
    <strong>{form.values[name]}</strong>
   </Form.Item>
  );
 }
origin: ZalakBhojani/Youtube-clone

function LeftMenu(props) {
 return (
  <Menu mode={props.mode}>
   <Menu.Item key="mail">
    <a href="/">Home</a>
   </Menu.Item>
   <Menu.Item key="subscription">
    <a href="/subscription">Subscription</a>
   </Menu.Item>
  </Menu>
 );
}
origin: Mangium/mangium

function () {
              if (permissionOrOverride("canSelfProjects")) {
                return <Menu.Item key="projects" icon={<ProjectOutlined/>}
                         onClick={() => changePage("/home/projects")}>Projects</Menu.Item>
              } else {
                return "";
              }
            }()
antd(npm)Item

Most used antd functions

  • MenuItem.Item
  • Item.Item
  • FormItem.Item
  • Group
  • MessageType.success
  • MessageType.error,
  • error,
  • BreadcrumbItem.Item,
  • Option,
  • RadioGroup.Group,
  • Password,
  • success,
  • confirm,
  • info,
  • Button,
  • Header,
  • MessageType.info,
  • MessageType.warning

Popular in JavaScript

  • winston
    A logger for just about everything.
  • through2
    A tiny wrapper around Node.js streams.Transform (Streams2/3) to avoid explicit subclassing noise
  • express
    Fast, unopinionated, minimalist web framework
  • moment
    Parse, validate, manipulate, and display dates
  • superagent
    elegant & feature rich browser / node HTTP with a fluent API
  • postcss
  • cheerio
    Tiny, fast, and elegant implementation of core jQuery designed specifically for the server
  • ws
    Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js
  • mkdirp
    Recursively mkdir, like `mkdir -p`
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJavascript Code Index
Get Tabnine for your IDE now