Documentation ¶
Overview ¶
Package anki is the model handler for the Anki models.
Index ¶
- Constants
- type Basic
- func (m *Basic) Action(card *model.Card, face *int, startTime time.Time, payload interface{}) (bool, error)
- func (m *Basic) Buttons(card *model.Card, face int) (studyview.ButtonMap, error)
- func (m *Basic) FuncMap(_ *model.Card, _ int) template.FuncMap
- func (m *Basic) IframeScript() []byte
- func (m *Basic) Type() string
- type Cloze
Constants ¶
View Source
const ( QuestionFace = iota AnswerFace )
The possible faces of an Anki card
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Basic ¶
type Basic struct{}
Basic is the controller for the Anki Basic model
func (*Basic) Action ¶
func (m *Basic) Action(card *model.Card, face *int, startTime time.Time, payload interface{}) (bool, error)
Action responds to a card action, such as a button press
func (*Basic) IframeScript ¶
IframeScript returns JavaScript to run inside the iframe.
Click to show internal directories.
Click to hide internal directories.