Skip to content

web.components.slides #

fn play #

fn play(mut plbook playbook.PlayBook) !&SlidesViewData

fn slides_demo #

fn slides_demo() !

fn slides_view_new #

fn slides_view_new(args_ SlidesViewParams) !SlidesViewData

enum SlideFormat #

enum SlideFormat {
	pdf
	png
}

struct Slide #

struct Slide {
pub mut:
	name  string // is the filename
	title string
	notes string
}

struct SlidePreview #

struct SlidePreview {
pub mut:
	name          string // is the filename
	collection    string
	title         string
	description   string
	notes         string
	thumbnail_url string
}

fn (SlidePreview) to_row #

fn (slide SlidePreview) to_row() Row

struct SlidesViewData #

struct SlidesViewData {
pub mut:
	name   string
	title  string
	slides []Slide
	paths  []string
}

fn (SlidesViewData) add_slide #

fn (mut s SlidesViewData) add_slide(slide Slide)

fn (SlidesViewData) get_slide #

fn (s SlidesViewData) get_slide(name string) ?Slide

struct SlidesViewParams #

@[params]
struct SlidesViewParams {
pub mut:
	name       string
	title      string
	path       string
	heroscript string
}

struct Slideshow #

struct Slideshow {
pub:
	url          string
	name         string
	log_endpoint string
	format       SlideFormat
	data         SlidesViewData
}

fn (Slideshow) html #

fn (s Slideshow) html() string

struct SlideshowPreview #

struct SlideshowPreview {
pub mut:
	name        string
	title       string
	description string
	slides      []SlidePreview
	paths       []string
}

fn (SlideshowPreview) html #

fn (slideshow SlideshowPreview) html() string