question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[feature]:add search mode to <md-input> tag

See original GitHub issue

Code

<md-input mode="search" placeholder="搜索..." [(ngModel)]="searchText"></md-input>

UI

Without focus

image

With focus

image

Online Demo

https://material.google.com/search.html?q=input

Thanks.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:11
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
jdddogcommented, Jul 21, 2017

It appears that a search box is in the spec, see these links:

0reactions
angular-automatic-lock-bot[bot]commented, Sep 6, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[feature]:add search mode to <md-input> tag · Issue #2141
So what I'm saying is, if you need a relatively simple component that can be put together from existing material2 components, better do...
Read more >
Strict Mode - React
You can enable strict mode for any part of your application. ... React used to support findDOMNode to search the tree for a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found