المؤقت البنية عرض فقط، عناصر تحكم، عدّ تنازلي، وفترة النبض. Hex doc Phoenix الحد الأدنى Preview Heex Copy Copied <.timer start_ms={60_000} class="timer" /> مع triggers Preview Heex Copy Copied <.timer start_ms={60_000} class="timer"> <:start_trigger><.heroicon name="hero-play" /></:start_trigger> <:pause_trigger><.heroicon name="hero-pause" /></:pause_trigger> <:resume_trigger><.heroicon name="hero-play" /></:resume_trigger> <:reset_trigger><.heroicon name="hero-arrow-path" /></:reset_trigger> </.timer> عدّ تنازلي Preview Heex Copy Copied <.timer countdown start_ms={60_000} target_ms={0} class="timer"> <:start_trigger><.heroicon name="hero-play" /></:start_trigger> <:pause_trigger><.heroicon name="hero-pause" /></:pause_trigger> <:resume_trigger><.heroicon name="hero-play" /></:resume_trigger> <:reset_trigger><.heroicon name="hero-arrow-path" /></:reset_trigger> </.timer> طي الأصفار البادئة Preview Heex Copy Copied <.timer countdown start_ms={86_400_000 * 4 + 3_600_000 * 12} target_ms={0} class="timer" /> شرائح ثابتة Preview Heex Copy Copied <.timer countdown start_ms={86_400_000 * 2 + 3_600_000} target_ms={0} class="timer" segments={[:days, :hours, :minutes, :seconds]} /> فاصل Preview Heex · · · Copy Copied <.timer start_ms={60_000} class="timer"> <:separator> · </:separator> </.timer> تسمية المنطقة Preview Heex Copy Copied <.timer countdown start_ms={60_000} target_ms={0} class="timer" translation={%Corex.Timer.Translation{area_label: "Countdown"}} /> تسميات الوحدات Preview Heex d h m s Copy Copied <.timer countdown start_ms={86_400_000 + 3_600_000} target_ms={0} class="timer" > <:day_label>d</:day_label> <:hour_label>h</:hour_label> <:minute_label>m</:minute_label> <:second_label>s</:second_label> </.timer> فاصل وتسميات الوحدات Preview Heex Days : Hours : Minutes : Seconds Copy Copied <.timer countdown start_ms={86_400_000 * 2 + 3_600_000} target_ms={0} class="timer" segments={[:days, :hours, :minutes, :seconds]} > <:separator>:</:separator> <:day_label>Days</:day_label> <:hour_label>Hours</:hour_label> <:minute_label>Minutes</:minute_label> <:second_label>Seconds</:second_label> </.timer> الفترة والبدء التلقائي Preview Heex Copy Copied <.timer start_ms={60_000} interval={2000} auto_start class="timer"> <:start_trigger><.heroicon name="hero-play" /></:start_trigger> <:pause_trigger><.heroicon name="hero-pause" /></:pause_trigger> <:resume_trigger><.heroicon name="hero-play" /></:resume_trigger> <:reset_trigger><.heroicon name="hero-arrow-path" /></:reset_trigger> </.timer>