-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different implementation #2
Comments
Hello ! |
Hello again 😃 Just published a new version 0.0.5-1. Then I did a test with a new I managed to make it work following this procedure :
@import '~bootstrap/less/bootstrap.less';
@import '~font-awesome/less/font-awesome.less';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { CommonModule } from '@angular/common';
import { IconPickerModule } from 'ngx-icon-picker/dist/index';
@NgModule({
declarations: [
AppComponent
],
imports: [
CommonModule,
BrowserModule,
IconPickerModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
<a class="btn form-control"
[ngStyle]="{backgroundColor: '#f96f6f', width: '50px'}"
[ipPlaceHolder]="'my placeholder here'"
[iconPicker]="icon"
[ipIconPack]="'fa'"
[ipPosition]="'bottom'"
[ipFallbackIcon]="fallbackIcon"
(iconPickerSelect)="onIconPickerSelect($event)" >
<i [ngClass]="icon"></i>
</a>
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.less']
})
export class AppComponent {
fallbackIcon = 'fa fa-book';
icon: string;
onIconPickerSelect($event: any): void {
console.log('$event : ', $event);
this.icon = $event;
}
} With this code the icon picker seems to work well. Regards |
Hi dear Renaud |
Hi my dear friend.
Tanks for your awesome module.
Your module is perfect but implementation according to your instruction doesn't work, so i recommend update your help with my implementation.
The text was updated successfully, but these errors were encountered: