diff --git a/src/app/components/create-status/poll-editor/poll-editor.component.html b/src/app/components/create-status/poll-editor/poll-editor.component.html index 58a6fed9..c5396f25 100644 --- a/src/app/components/create-status/poll-editor/poll-editor.component.html +++ b/src/app/components/create-status/poll-editor/poll-editor.component.html @@ -1,6 +1,6 @@
- poll-entry works! -
+ \ No newline at end of file diff --git a/src/app/components/create-status/poll-editor/poll-entry/poll-entry.component.scss b/src/app/components/create-status/poll-editor/poll-entry/poll-entry.component.scss index e69de29b..9e591947 100644 --- a/src/app/components/create-status/poll-editor/poll-entry/poll-entry.component.scss +++ b/src/app/components/create-status/poll-editor/poll-entry/poll-entry.component.scss @@ -0,0 +1,19 @@ +.poll-entry { + + &__multi { + &--link { + display: block; + width: 20px; + height: 20px; + outline: 1px solid greenyellow; + } + } + + &__label { + + } + + &__remove { + + } +} \ No newline at end of file diff --git a/src/app/components/create-status/poll-editor/poll-entry/poll-entry.component.ts b/src/app/components/create-status/poll-editor/poll-entry/poll-entry.component.ts index 1be7168b..2bb37761 100644 --- a/src/app/components/create-status/poll-editor/poll-entry/poll-entry.component.ts +++ b/src/app/components/create-status/poll-editor/poll-entry/poll-entry.component.ts @@ -1,4 +1,5 @@ -import { Component, OnInit, Input } from '@angular/core'; +import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; +import { faTimes } from "@fortawesome/free-solid-svg-icons"; @Component({ selector: 'app-poll-entry', @@ -6,21 +7,34 @@ import { Component, OnInit, Input } from '@angular/core'; styleUrls: ['./poll-entry.component.scss'] }) export class PollEntryComponent implements OnInit { + faTimes = faTimes; + @Input() entry: PollEntry; + @Output() removeEvent = new EventEmitter(); + @Output() toogleMultiEvent = new EventEmitter(); + constructor() { } ngOnInit() { } remove(): boolean { - + this.removeEvent.next(); + return false; + } + + toogleMulti(): boolean { + this.toogleMultiEvent.next(); return false; } } export class PollEntry { + constructor(public id: number) { + } + public isMulti: boolean; - public entry: string; + public label: string; } \ No newline at end of file