API Docs for: 0.0.2
Show:

File: ../api/src/view/metadata/fen-field.js

/**
 * This is a text/input-field showing position of current move. It will be updated when one of the following events is fired by
 * the controller: newGame, setPosition, newMove, nextMove.
 * @namespace chess.view.metadata
 * @class FenField
 * @extends form.Text
 */
chess.view.metadata.FenField = new Class({
    Extends : ludo.form.Text,
    type : 'chess.view.metadata.FenField',
    module:'chess',
    submodule : 'metadata.FenField',
    stretchField : true,
    label : 'FEN',
    formCss : { 'font-size' : '10px'},
    labelWidth : 30,
    selectOnFocus : true,
    setController : function(controller){
        this.parent(controller);
        this.controller.addEvent('newGame', this.showFen.bind(this));
        this.controller.addEvent('setPosition', this.showFen.bind(this));
        this.controller.addEvent('newMove', this.showFen.bind(this));
        this.controller.addEvent('nextmove', this.showFen.bind(this));
    },

    showFen : function(model){
        var fen = model.getCurrentPosition();
        this.setValue(fen);
    }

});