radare/radare2-webui

View on GitHub
www/m/js/widgets/DisassemblyBlocksWidget.js

Summary

Maintainability
A
1 hr
Test Coverage
import {BasePreWidget} from './BasePreWidget';
import {Inputs} from '../helpers/Inputs';

import {uiContext} from '../core/UIContext';
import {Widgets} from './Widgets';
import {formatOffsets} from '../helpers/Format';

const inColor = true; // TODO inColor

export class DisassemblyBlocksWidget extends BasePreWidget {
    constructor() {
        super(
            'Blocks',
            x => formatOffsets(x),
            'pdr|H',
            Inputs.iconButton('undo', 'Back to Disassembly', () => uiContext.navigateTo(Widgets.DISASSEMBLY)));
    }
}