How to use the feather-icons.replace function in feather-icons

To help you get started, we’ve selected a few feather-icons examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wuweiweiwu / react-pretty-interaction-icon / src / react-pretty-interaction-icon.js View on Github external
componentDidMount() {
    // get all the icons rendered
    feather.replace();
  }
github unite-cms / unite-cms / src / Bundle / CoreBundle / Resources / webpack / vue / components / VariantsVariant.vue View on Github external
setTimeout(()=> {
                        feather.replace();

                        // When variant was selected, enable all disabled input elements if they are not disabled intentionally.
                        this.$el.querySelectorAll('input, textarea, select').forEach((element) => {
                            if(!element.classList.contains('disabled')) {
                                element.disabled = false;
                            }
                        });

                    }, 2);
                }
github tamb / domponent / examples / site / src / index.js View on Github external
import jump from "jump.js";
import { Init, Component } from "domponent/dist/domponent.development.js";
import feather from "feather-icons";

import "./fonts.scss";
import "./base.scss";
import "./includes/nav/nav";
import "./includes/tags/tags";
import "./includes/header/header";
import "./includes/btn/btn";
import "./includes/markup/markup";
import "./includes/charts/charts";
import "./includes/seo/seo";
import "./includes/api/api";

feather.replace();

class HoverBuddy extends Component {
  constructor(props) {
    super(props);
  }

  highlight(e) {
    console.log(this);
    const refName = e.target.dataset.refArray;
    if (refName) {
      this[refName].forEach(el => el.classList.add("same"));
    }
  }
  removeHighlight(e) {
    const refName = e.target.dataset.refArray;
    if (refName) {
github rpfujiw / gui-auto-uat / angular-src / src / app / components / projects / projects.component.ts View on Github external
ngOnInit() {
    feather.replace();
    this.showLoadingImage = true;
    this.projectsSevice.getAllProjects()
      .subscribe(
        (projects) => {
          this.projects = projects;
          this.showLoadingImage = false;
        },
        (error) => {
          this.showLoadingProjectsError = true;
          this.showLoadingImage = false;
        }
      )
  }
github rpfujiw / gui-auto-uat / angular-src / src / app / components / features / features.component.ts View on Github external
ngOnInit() {
    feather.replace();
    this.featuresService.getAllBySuiteId(this.navigationStateService.suiteIdSelected)
      .subscribe(
        (features) => {
          this.features = features;
          this.showLoadingImage = false;
        },
        (error) => {
          this.showLoadingFeaturesError = true;
          this.showLoadingImage = false;
        }
      );
    this.filenameCheck.pipe(debounceTime(500))
      .subscribe(
        (filename) => {
          this.featuresService.checkIfFilenameExists(this.navigationStateService.projectIdSelected, filename)
            .subscribe(
github rpfujiw / gui-auto-uat / angular-src / src / app / components / scenarios / scenarios.component.ts View on Github external
ngOnInit() {
    feather.replace();
    this.getAllScenarios();
    this.scenarioStateService.componentToOpen$
      .subscribe(
        (componentName) => {
          this.componentToOpen = componentName;
          if(componentName === 'scenarioHome'){
            this.getAllScenarios();
          }
        }
      );
  }

feather-icons

Simply beautiful open source icons

MIT
Latest version published 5 days ago

Package Health Score

89 / 100
Full package analysis

Similar packages