Skip to content

Instantly share code, notes, and snippets.

View zechtz's full-sized avatar

Mtabe zechtz

View GitHub Profile
@zechtz
zechtz / dynamic-form.vue
Created July 28, 2020 09:09
Create dynamic form in Vuejs
<template>
<div>
<v-row class="mt-n8" v-for="(stream, index) in streams" :key="index">
<v-col cols="12" lg="5" md="5" sm="12">
<v-select
:items="shiftMetadataNames"
:item-text="'name'"
v-model="stream.shiftMetadataName"
:name="`streams[${index}][shiftMetadataName]`"
return-object
@zechtz
zechtz / upvote.ex
Created April 8, 2024 11:45
Phoenix Downvote Live Component styled using tailwind css
defmodule LiveWeb.Downvote do
use LiveWeb, :live_component
alias Live.FAQs
@impl true
def update(assigns, socket) do
{:ok, assign(socket, assigns)}
end
@impl true